Don't ask to ask, just ask | |
PerlMonks |
Re^2: sorting filesby GrandFather (Saint) |
on May 29, 2008 at 20:04 UTC ( [id://689078]=note: print w/replies, xml ) | Need Help?? |
I'd rewrite the sub as:
which is slightly more compact and deals better with bad matches by avoiding comparing undefined values. Explicit returns are good too. Perl is environmentally friendly - it saves trees
In Section
Seekers of Perl Wisdom
|
|