|
|
| go ahead... be a heretic | |
| PerlMonks |
Re^2: @_ & @ARGVby dushyant (Novice) |
| on Oct 07, 2012 at 17:41 UTC ( #997696=note: print w/ replies, xml ) | Need Help?? |
|
Thanks for the replies guys, now I got it. I was expecting the value of @_ will remain same (“-w”) throughout the code. But for subroutine formatlist the value of @_ is “-w” and for anonymous subroutine @_ is “Command Line”. I removed the last line &$arguments(‘Command Line’) from above code, and got “-w out return” printed.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||