Don't ask to ask, just ask | |
PerlMonks |
Re^2: Pls help optomize - ksh version 60% faster!by Skeeve (Parson) |
on Sep 28, 2005 at 22:48 UTC ( [id://495933]=note: print w/replies, xml ) | Need Help?? |
Question: instead of
I would use Don't you think this would be faster than the grep, besides the fact that (I think) a grep for $rptTyp being 'a' would match a stored $rptType of 'XaX'. I know! The OP had that code and maybe it's exactly what the OP intended, but it "smells fishy" ;-) $\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print
In Section
Seekers of Perl Wisdom
|
|