Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Re: string manipulation

by extremely (Priest)
on Mar 30, 2001 at 03:31 UTC ( #68234=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Benchmark: running regexp, transl, each for at least 10 CPU seconds...
        regexp: 10 wallclock secs (10.59 usr +  0.00 sys = 10.59 CPU) @ 37
    +274.69/s (n=394739)
    ...
               Rate regexp transl
    regexp  37275/s     --   -88%
    transl 313981/s   742%     --
    
  2. or download this
    use strict;
    use Benchmark qw(cmpthese);
    ...
        'transl' => '$x =~ tr/-/_/; $x =~ tr/_/-/;',
        'regexp' => '$x =~ s/-/_/g; $x =~ s/_/-/g;',
    } );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (15)
As of 2015-07-06 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls