We don't bite newbies here... much | |
PerlMonks |
Re: problems with tr///;by thunders (Priest) |
on Sep 25, 2001 at 23:37 UTC ( [id://114643]=note: print w/replies, xml ) | Need Help?? |
I go for substitution in cases like this
in which case <code size=+1>$script =~ s/\\//g;</code> should do what your looking for. I often use tr to count stuff. as in <code size=+1>$x = $somestring =~ tr/0-9/0-9/; #find the number of digits in $somestring and put that value in $x</code>
In Section
Seekers of Perl Wisdom
|
|