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 reply to Re^2: @_ & @ARGV
by dushyant
in thread @_ & @ARGV
by dushyant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |