"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: What I Most Recently Learned in Perl, But Should Have Already Known
by jplindstrom
|
|