http://www.perlmonks.org?node_id=1018451


in reply to Re^2: Perl Sorting Help
in thread needed help

Take a look at the first example in open. Once you open your file handle, replace <DATA> with <$your_filehandle> at the beginning of the loop.