No such thing as a small change | |
PerlMonks |
Re^2: approximate regular expressionby Marshall (Canon) |
on Mar 23, 2012 at 06:12 UTC ( [id://961152]=note: print w/replies, xml ) | Need Help?? |
Yes, split() is certainly "brute force". If you have bench-marked this, you know that this is a very "expensive operation". @array = split (//,$some_var) is super "expensive" and your code does it many times. Going "with the flow" of the language is (usually) going to execute faster and in general "be better", meaning easier to understand.
In Section
Seekers of Perl Wisdom
|
|