Rakudo Perl Hacking Rakudo Perl #40

Rakudo Perl - interactive mode

$ ./perl6
> say 'hello world'
hello world

Lexical variables and declarations do not cross input lines

Each statement is its own "eval" block

Helpful hint: Closing block curlies followed by a statement need a semicolon

> sub foo { say "hello" }    foo();           # wrong
> sub bar { say "world" };   bar();           # right
Copyright © 2009
http://www.pmichaud.com/2009/pres/