foreach my $paramKey (@params){ $i = 0; open (FILE1, "<tabtext.txt"); open (FILE2, ">ludo.txt"); while(<FILE1>){ if (/$paramKey[$i]/){ print FILE2; } $i++; } close(FILE1); close(FILE2); }
In reply to matching an array by Anonymous2003
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |