Do you know where your variables are? | |
PerlMonks |
Re: problem sorting by non-consecutive fieldsby davido (Cardinal) |
on Apr 07, 2004 at 20:40 UTC ( [id://343427]=note: print w/replies, xml ) | Need Help?? |
One way to do it would be to use a Schwartzian Transform combined with the Logical Short Circuit 'or' operator for sort comparison fall-through.
UPDATE: What do you mean by "using sort +2 +0 -n file the third field should be sort based on the first letter and the first based on the number."??? Are you using Perl and Perl's sort, or are you using your operating system's sort tool?
Dave
In Section
Seekers of Perl Wisdom
|
|