|
|
| more useful options | |
| PerlMonks |
Re: Re: substr sort ??by dbwiz (Curate) |
| on Aug 22, 2003 at 10:32 UTC ( [id://285790]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You could simply use @values = sort @values, since this checks the first two digits They are not exactly the same thing. Your method will only work if every element had the same number of digits. If you were to compare "1abc" and "10abc", it would give you the wrong order.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||