use strict; print sort {$a <=> $b} <> __END__ Usage example: sort.pl data.txt [download]
In reply to Re^3: Sorting within a file by sh1tn in thread Sorting within a file by Anonymous Monk