Perl Monk, Perl Meditation | |
PerlMonks |
Re: On Scalar Contextby Aristotle (Chancellor) |
on Oct 02, 2005 at 06:15 UTC ( [id://496726]=note: print w/replies, xml ) | Need Help?? |
This just came up again on use Perl (and again). I see four large factions here:
The rest is a tiny inconsistent minority. The hash-related functions kind of belong to the list functions and kind of to the iterators – particularly the oddball each, which is the only thing that functions as an iterator in both contexts. But that is because hashes are kind of oddball anyway in terms of context. So the return values are consistent, their consistency is just inconsistent. Makeshifts last the longest.
In Section
Meditations
|
|