Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: (bbfu) (another way) Re: Replacing a given character starting with the xth occurence in a string

by zeidrik (Scribe)
on May 21, 2001 at 13:55 UTC ( [id://81938]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl -w
    use strict;
    ...
     return $str.$_;
    }
    print mine($s,$c,$r,$n);
    
  2. or download this
    #!/usr/local/bin/perl -w
    use strict;
    ...
      "MINE" => sub { mine ($s,$c,$r,$n) },
    });
    
  3. or download this
    Benchmark: timing 500000 iterations of BBFU'S, MINE, Quent's...
        BBFU'S: 20 wallclock secs (19.45 usr +  0.00 sys = 19.45 CPU) @ 25
    +706.94/s (n=500000)
    ...
    Quent's 20027/s      --    -20%    -22%
    MINE    25147/s     26%      --     -2%
    BBFU'S  25707/s     28%      2%      --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found