in reply to Scanning a text file
my $searchfor = shift; $/="%%%\n" open(IN, 'datafile.txt') or die "Could not open: $!\n"; while (<IN>) { print if /\Q$searchfor\E/i; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Scanning a text file
by Anonymous Monk on Apr 09, 2004 at 16:07 UTC | |
by graff (Chancellor) on Apr 10, 2004 at 05:25 UTC |