in reply to Optimizing perl code performance
Then you wouldn't even need to call chomp. (And in general, I'm wondering if it would speed things up to combine the other instructions.)/.*,.*,.*,.*,.*,.*,.*,.*,(*),.*/ my $X = $1
UPDATE: It occurred to me that the code re-declares every variable again on every pass through the loop. It seems like it might help to trychomp( my($line)=$_ ) ;
my ($X, $Y, $A, $B, $C, $D); while(<DATAIN>)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimizing perl code performance
by QM (Parson) on Aug 17, 2015 at 09:33 UTC |