This behaviour can be attributed to the fact that exact method to be called cannot be determined until runtime.sub foo($) { print "got @_\n"; } my @args = qw/ more than one arg /; ## class method call main->foo(@args); ## standard sub call foo(@args); __output__ got main more than one arg got 4
_________
broquaint
In reply to Re: Subroutine Prototyping/Subroutine Argument Parsing
by broquaint
in thread Subroutine Prototyping/Subroutine Argument Parsing
by Missing Words
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |