fatfinger has asked for the wisdom of the Perl Monks concerning the following question:
#Current Script <br>open(File, "<U:\\PerlFolder\\test.txt") or die (Can't open $FILE") +; open(File, ">U:\\PerlFolder\\results_Out.txt") or die (Can't open $FIL +E"); print"Enter Term\n"; $input=<STDIN>; chomp($input); while($lines=<File>) { chomp ($lines); cnt++; if($lines=~/$input/i) { print OUTFILE"$lines\n"; } } close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Matching
by Crian (Curate) on Nov 19, 2008 at 13:24 UTC | |
|
Re: Pattern Matching
by svenXY (Deacon) on Nov 19, 2008 at 13:44 UTC | |
by lostjimmy (Chaplain) on Nov 19, 2008 at 15:54 UTC | |
|
Re: Pattern Matching
by JavaFan (Canon) on Nov 19, 2008 at 14:08 UTC |