in reply to Optimization tips

I haven't read through all the code yet, but small tip: use tr/// instead of s/// for single character substitutions.

#Set common delimiter for (@lines2) { s/(\t|;)/\t/g } for (@rejects) { s/(\t|;)/\t/g }
#Set common delimiter tr/\t;/\t/ for @lines2, @rejects;

Replies are listed 'Best First'.
Re^2: Optimization tips
by NERDVANA (Priest) on Jul 22, 2022 at 02:34 UTC
    More than that, I don't see the reason to replace a tab with a tab. That just wastes time.