in reply to Merge 3 files into one file

Obligatory plug for "use strict; use warnings;"

Note that the regexes at the end are likely the cause of any excess runtime not caused by disk I/O. Like ELISHEVA said, hashes are much better here (although memory usage will be somewhat higher).

Replies are listed 'Best First'.
Re^2: Merge 3 files into one file
by ikegami (Patriarch) on Mar 12, 2009 at 20:36 UTC
    If the regexps are a problem, they'll go much faster in 5.10+ thanks to tries.
Re^2: Merge 3 files into one file
by shawshankred (Sexton) on Mar 13, 2009 at 04:54 UTC
    jethro,
    Thanks a lot, as suggested I used hash and it worked fine and takes less than a minute.