Perl-Sensitive Sunglasses | |
PerlMonks |
Re: What I Most Recently Learned in Perl, But Should Have Already Knownby jplindstrom (Monsignor) |
on Aug 17, 2006 at 08:34 UTC ( [id://567852]=note: print w/replies, xml ) | Need Help?? |
One thing that bit me a few months ago: sort in scalar context is undefined.
That isn't a big deal until you do this in a sub:
that is supposed to return a sorted list. And then you wonder how many elements the list contains:
That's pretty annoying when you happen to do it, and pretty important to know about so you don't. I sure was surprised the first time I encountered it. /J
In Section
Meditations
|
|