(I haven't dug into your code - I'm merely guessing that this is what's happening.)use warnings; use strict; package MY_FOO; my $str = 'this is the second argument'; MY_FOO->foo($str); sub foo { print "$_\n" for @_; } __END__ prints: MY_FOO this is the second argument
In reply to Re: invoking subroutines
by syphilis
in thread invoking subroutines
by anitsahu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |