in reply to profiling help

If the files are not large, you could test your code with putting undef $/; as line 4. This causes the read to read in the entire file at once. It may or may not help depending on the data.

HTH, --traveler