Edit: I put the open/close functions in the right place. So now it doesn't overwrite ludo.txt for every loop.open (FILE1, "<tabtext.txt"); open (FILE2, ">ludo.txt"); foreach my $paramKey (@params){ while(<FILE1>){ if (/$paramKey.*$/){ print FILE2, "\n"; } } close(FILE1); close(FILE2);
In reply to Re: matching an array
by Zeroth
in thread matching an array
by Anonymous2003
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |