Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: More while issues

by Anonymous Monk
on Mar 03, 2011 at 21:09 UTC ( [id://891306]=note: print w/replies, xml ) Need Help??


in reply to More while issues

$string =~ tr/H// returns the number of times the character 'H' occurs in a string.

$string =~ tr/G//d; removes all occurances of the character 'G'.

See tr/SEARCHLIST/REPLACEMENTLIST/cds in perldoc perlop.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found