in reply to Optimizing slow restructuring of delimited files

You program would probably run a little more quickly if you used lexical (my) variables--assuming you are not already doing so.

You may also gain a little performance from avoiding the join by setting $, = "\t"; and just printing the splice.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.