Or else, even avoiding to mess up with prototypes (if you don't really need them), you must extract the single scalar params you want manually.sub cog_class (\@$) { my $name = pop; print "NAME $name\n"; for (@{ $_[0] }) { # Note the Perl-style c<for> loop!! # BLAH BLAH } }
In reply to Re: subroutine arguments
by blazar
in thread subroutine arguments
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |