Do you just mean that you want to clear @goodnums before processing each line? If so then you probably just want to declare the array within the loop so that it is reinitialised each time
foreach my $line (@file) { my @good_nums; ... ... }
In reply to Re: value accumulation
by Bilbo
in thread value accumulation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |