in reply to Search Script
if( $input =~ /$first/i ){ ... }
This will also avoid binary-file issues, which i'm sure will be mentioned in other comments.# prompt for $filename open HINTS, "Hints.txt" or die "Can't find file\n"; while( my $hintline = <HINTS> ){ my ($first,$last) = split(/\ == /,$hints); my $results = `strings $filename | grep -i '$first'`; next unless length $results; printf "Found: %s\n", $last; } close HINTS;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search Script
by arebc (Initiate) on May 04, 2005 at 17:45 UTC | |
by eibwen (Friar) on May 04, 2005 at 17:56 UTC | |
by arebc (Initiate) on May 04, 2005 at 18:54 UTC | |
by davidrw (Prior) on May 04, 2005 at 18:32 UTC |