in reply to underscore prototype imposing scalar context
Does this help?
sub x(@;_) { print @_ ? @_ : $_ };; $_ = 'fred'; x();; fred $_ = 'fred'; x( 1 .. 5 );; 1 2 3 4 5 $_ = 'fred'; x( 1 );; 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: underscore prototype imposing scalar context
by Aaronrp (Scribe) on Mar 10, 2012 at 20:21 UTC |