Help for this page
system("sort somefile.txt >somefile2.txt") or die;
system("sort somefile.txt >somefile2.txt 2>error.txt") or die;