Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

How Do I Use the tr Function's 'c' Option?

by anniyan (Monk)
on Aug 24, 2005 at 16:26 UTC ( #486270=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a = 'acvdef431234';
    $a =~ tr/\d/ /c;
    print "$a";
    output:   d
    expected output:      431234
    
  2. or download this
    $a = 'acvdef431234';
    $a =~ tr/[0-9]/ /c;
    print "$a";
    output:      431234
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2022-01-18 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (52 votes). Check out past polls.

    Notices?