in reply to reading from a huge file

The output of perl -V (uppercase "V") might also be useful in determining the problem.