my $searchfor = shift; $/="%%%\n" open(IN, 'datafile.txt') or die "Could not open: $!\n"; while (<IN>) { print if /\Q$searchfor\E/i; }
In reply to Re: Scanning a text file
by Roy Johnson
in thread Scanning a text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |