Don't ask to ask, just ask | |
PerlMonks |
Re: how do I sort numerically on sections of data that is alphanumericby Brovnik (Hermit) |
on Jun 26, 2001 at 23:44 UTC ( [id://91729]=note: print w/replies, xml ) | Need Help?? |
Or, there is the Schwartzian Transform.
Note: If the 'A' in column 3 is always 'A' and the columns are null padded, then you don't need the substr and can use Note the switch to cmp since this now a string. -- Brovnik
In Section
Seekers of Perl Wisdom
|
|