Skip to content

Instantly share code, notes, and snippets.

@avar
Created August 5, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avar/1e4fdb8cead66242a0b61921abfe21fe to your computer and use it in GitHub Desktop.
Save avar/1e4fdb8cead66242a0b61921abfe21fe to your computer and use it in GitHub Desktop.
use v5.14.2;
use strict;
use warnings;
use Inline::Perl6;
my $p6 = Inline::Perl6->new;
my $app = sub {
my @ret = $p6->run(<<'P6');
sub main {
return [
200,
[],
["Hi there, here are 2 numbers from 1..10: " ~ (1..10).pick(2).join(", ") ~ "\n"]
];
}
main();
P6
return \@ret;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment