Perl: the Markov chain saw | |
PerlMonks |
Re: Sort on Number Embedded in Stringby cog (Parson) |
on Mar 22, 2005 at 19:14 UTC ( [id://441575]=note: print w/replies, xml ) | Need Help?? |
Untested :-)
Update: I didn't notice that some of the lines had only one digit, and not two; hence, my solution with the substr will not work properly. Still, as you can see by the already three similar answers, this (the schwartzian transform) is the right way to go :-)
In Section
Seekers of Perl Wisdom
|
|