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])); }
In reply to Re: "my" slowing down programs?
by BrowserUk
in thread "my" slowing down programs?
by jf1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |