Slurpy parameters (varargs)
Slurpy parameters are indicated with a leading '*'
Collect all remaining arguments into a single List
sub shout-them(*@words) { for @words { print uc($_), " " } } shout-them('Perl', '6', 'Rocks'); # PERL 6 ROCKS shout-them('nom'); # NOM shout-them(); # (no output)
Slurpy parameter is both lazy and flattening