open (FILE1, "<tabtext.txt") or die $!; open (FILE2, ">ludo.txt") or die $!; my $re = join "|", map {quotemeta} @params; while (<FILE1>) { print FILE2 if /$re/o; } close(FILE1); close(FILE2);
--
flounder
In reply to Re: matching an array
by flounder99
in thread matching an array
by Anonymous2003
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |