in reply to "my" slowing down programs?
Try declaring the array before the loop:
my @l1; while (chomp ($line = <$gsr>)) { @l1 = split $tab, $line; @l1 = split $tab, $line; @l1 = split $tab, $line; print(join($tab,@l1[@okc])); print(join($tab,@l1[@okc])); print(join($tab,@l1[@okc])); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "my" slowing down programs?
by jf1 (Beadle) on Aug 17, 2015 at 07:45 UTC |