amulcahy has asked for the wisdom of the Perl Monks concerning the following question:
The format of the text in the file to be searched is like:$tempName= $query->param('searchText'); #user supplied open (FILE, "+>>filename"); @file = <FILE>; $temp = join('',@file); $temp =~ /$tempName/s; if ($temp eq '') { print FILE $tempName . "\n"; } close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern match on entire file
by CubicSpline (Friar) on Nov 14, 2001 at 18:26 UTC | |
|
Re: pattern match on entire file
by trantor (Chaplain) on Nov 14, 2001 at 18:31 UTC | |
by amulcahy (Acolyte) on Nov 14, 2001 at 19:44 UTC | |
|
Re: pattern match on entire file
by claree0 (Hermit) on Nov 14, 2001 at 18:52 UTC | |
by s0ttle (Scribe) on Nov 15, 2001 at 03:23 UTC |