http://www.perlmonks.org?node_id=997689


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'