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