No such thing as a small change | |
PerlMonks |
Re: Re: Optimizing a string processing subby John M. Dlugosz (Monsignor) |
on Jan 10, 2003 at 16:21 UTC ( [id://225849]=note: print w/replies, xml ) | Need Help?? |
I was thinking along similar lines, but using tr// in its count-them mode. $cnt1= $x =~ eval "tr/$y//"; Hmm, the tr doesn't do interpolation. So it trades the @{[ for an eval.
In Section
Seekers of Perl Wisdom
|
|