|
|
| more useful options | |
| PerlMonks |
Re: Why does reverse in list context operate on () instead of @_ or @ARGVby ikegami (Pope) |
| on Aug 27, 2012 at 15:30 UTC ( #990006=note: print w/ replies, xml ) | Need Help?? |
|
It's not unimportant that very little that expects a list distinguishes between an empty list and an unspecified list, and those that do* all default to $_. * — Only print and say do. reverse in scalar context does too, but that's because it's required to accept a list in case it's called in list context.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||