Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: How can I sort this data on the first fieldby chas (Priest) |
on Apr 25, 2005 at 12:33 UTC ( [id://451157]=note: print w/replies, xml ) | Need Help?? |
What if you use
print sort {$a<=>$b} <DATA>;? chas (Update: Posted after reading an unrefreshed page and didn't realize Roy Johnson had already suggested the same thing.)
In Section
Seekers of Perl Wisdom
|
|