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.";
In reply to Re: Re: Re: Shorten script
by sauoq
in thread Shorten script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |