Unless the people using your script can be trusted with learning regexp syntax, you may wish to write that as: if (/\Q$search_value\E/o) { with the \Q doing a quotemeta on the string to make sure there aren't "confusing" things in there. Sooner or later some bright-boy will try and search for ".*" for some reason and be lucky enough to have your script return all 350k of data to him...
If you are cleaning up and fixing the search pattern elsewhere, ignore this.
--
$you = new YOU;
honk() if $you->love(perl)
In reply to RE: Re: Faster way?
by extremely
in thread Faster way?
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |