in reply to ?? Blazes under Linux; crawls under XP & Win2K...

Perhaps opening/closing all the files before outside the loop may improve performance. Also, not using the flush ($|++) may help too.

update: corrected

Replies are listed 'Best First'.
Re^2: ?? Blazes under Linux; crawls under XP & Win2K...
by Perl Mouse (Chaplain) on Jan 09, 2006 at 11:23 UTC
    Disabling the flush in the above program won't make much of a difference. It's just a matter of the write(2) happening after the print (with buffering disabled), or before the close (with buffering enabled). But since the only print happens before the close, it's not going to make much of a difference. In either case, there will be the same number of write(2)s.
    Perl --((8:>*