Does this help?
sub x(@;_) { print @_ ? @_ : $_ };; $_ = 'fred'; x();; fred $_ = 'fred'; x( 1 .. 5 );; 1 2 3 4 5 $_ = 'fred'; x( 1 );; 1
In reply to Re: underscore prototype imposing scalar context
by BrowserUk
in thread underscore prototype imposing scalar context
by Aaronrp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |