Anonymous2003 has asked for the wisdom of the Perl Monks concerning the following question:
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); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching an array
by AcidHawk (Vicar) on Aug 08, 2003 at 12:22 UTC | |
|
Re: matching an array
by flounder99 (Friar) on Aug 08, 2003 at 12:58 UTC | |
|
Re: matching an array
by Zeroth (Beadle) on Aug 08, 2003 at 12:21 UTC | |
by Anonymous2003 (Initiate) on Aug 08, 2003 at 13:19 UTC | |
by flounder99 (Friar) on Aug 08, 2003 at 13:39 UTC | |
|
Re: matching an array
by Skeeve (Parson) on Aug 08, 2003 at 12:12 UTC | |
by Anonymous2003 (Initiate) on Aug 08, 2003 at 12:21 UTC | |
|
Re: matching an array
by Zeroth (Beadle) on Aug 08, 2003 at 12:41 UTC |