good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Quicker way to compare these 2 strings?by cormanaz (Deacon) |
on May 19, 2010 at 00:14 UTC ( [id://840585]=note: print w/replies, xml ) | Need Help?? |
You could do the same thing with substr without creating the arrays:
I don't know if it would be faster, but it's possible since you wouldn't have the overhead associated with splitting the strings into the arrays. Maybe some interpreter monk knows the answer to that.
In Section
Seekers of Perl Wisdom
|
|