Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Difference between tr// and s///?

by HyperZonk (Friar)
on Feb 06, 2004 at 16:19 UTC ( [id://327116]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
                       Rate transliterate  substitution
    transliterate 1011345/s            --          -49%
    substitution  1969797/s           95%            --
    
  2. or download this
    use Benchmark qw(:all);
    
    $toto = 'this+is+my+text+and+here+is+more+and+more+this+is+my+text+and
    ++here+is+more+and+more+this+is+my+text+and+here+is+more+and+more';
    ...
            cmpthese( $results ) ;
    
    exit 0;
    
  3. or download this
                      Rate  substitution transliterate
    substitution   73807/s            --          -88%
    transliterate 625256/s          747%            --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found