Perl 6 Perl 6 today #38

Subroutines

Subroutines can have signatures

Automatically unpacked into local (my) variables

sub order_beer($type, $how_many) {
    say "$how_many pints of $type, please";
}

order_beer('Tuborg', 5);
Copyright © 2009
http://www.pmichaud.com/2009/pres/