in reply to Re: Re: Shorten script
in thread Shorten script
In general, it's more efficient to elevate the "ors" out of the pattern. In other words,
is usually better than a single more complex regular expression.$line =~ /pat1/ or $line =~ /pat2/
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Shorten script
by snax (Hermit) on Jul 22, 2003 at 20:48 UTC | |
by sauoq (Abbot) on Jul 22, 2003 at 21:02 UTC | |
by snax (Hermit) on Jul 22, 2003 at 21:42 UTC |