Perl Monk, Perl Meditation | |
PerlMonks |
RE: Re: Using variables with tr///by DrManhattan (Chaplain) |
on Jul 17, 2000 at 19:59 UTC ( [id://22856]=note: print w/replies, xml ) | Need Help?? |
This is significantly faster than using eval:
And this is faster still:
Update (7/19/00): Oh, duh. s/// returns a count of the number of changes made. Here's a faster way to write the subroutine:
- Matt
In Section
Seekers of Perl Wisdom
|
|