Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created September 27, 2012 19:07
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 pmichaud/3795822 to your computer and use it in GitHub Desktop.
Save pmichaud/3795822 to your computer and use it in GitHub Desktop.
### as released in star 2012.08
pmichaud@kiwi:/zip/perl/rakudo-star-2012.08$ cat p2.p6
print "abc: ";
my $abc = $*IN.get;
say "abc = $abc";
print "def: ";
my $def = $*IN.get;
say "def = $def";
pmichaud@kiwi:/zip/perl/rakudo-star-2012.08$ ./perl6 p2.p6
abc: hello
abc = hello
def: world
def = world
### as in Rakudo 2012.09-21-g9af8f20
pmichaud@kiwi:~/p6/rakudo$ cat p2.p6
print "abc: ";
my $abc = $*IN.get;
say "abc = $abc";
print "def: ";
my $def = $*IN.get;
say "def = $def";
pmichaud@kiwi:~/p6/rakudo$ ./perl6 p2.p6
hello
abc: abc = hello
world
def: def = world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment