No such thing as a small change | |
PerlMonks |
Re: dictionary sortingby Trimbach (Curate) |
on Mar 13, 2002 at 13:48 UTC ( [id://151372]=note: print w/replies, xml ) | Need Help?? |
It IS pretty simple: the "cmp" operator that you've already quoted. Your example is complicated because you spend 2 lines eliminating non-word characters and underscores, but without that it can reduced to:
How simple is that? :-D Gary Blackburn
In Section
Seekers of Perl Wisdom
|
|