Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to problems with tr///;

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>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://114643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found