Welcome to the Monastery | |
PerlMonks |
Re: Yet more While issuesby ikegami (Patriarch) |
on Mar 16, 2011 at 19:22 UTC ( [id://893622]=note: print w/replies, xml ) | Need Help?? |
For clarity more than for speed, should be and should simply be
For speed, don't copy the zazb argument into a local variable. Access $_[3] directly. A possible tweak:
might be faster as
or maybe even
Benchmark and find out.
This will occur when 'c' doesn't occur in $zazb. Based on your first snippet, you want
In Section
Seekers of Perl Wisdom
|
|