in reply to Re: @_ & @ARGV
in thread @_ & @ARGV
Further, only lexical variables can be closed over. @_ is not a lexical variable (it's not declared with my) so can't be closed over.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
|
---|
In Section
Seekers of Perl Wisdom