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

Re: String replace

by ikegami (Patriarch)
on Nov 29, 2005 at 18:49 UTC ( [id://512742]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $text_orig = "The respondent uses the following products XXX, YYYYY
    +YYYY, ZZZZZZZ around the house and they are considering using QQQQQQQ
    + too. They are particularly impressed with ZZZZZZZ.\n";
    
    ...
    
       print($text_new);
    }
    
  2. or download this
    use List::Util qw( shuffle );
    
    ...
    
       print($text_new);
    }
    
  3. or download this
    for (1..4) {
       my %picked;
    ...
    
       print($text_new);
    }
    
  4. or download this
    use Benchmark qw( cmpthese );
    
    ...
       b => sub { keys(%b) == 1; },
       c => sub { keys(%c) == 1; },
    });
    
  5. or download this
           Rate   a   c   b
    a 2314690/s  -- -1% -5%
    c 2340571/s  1%  -- -4%
    b 2429401/s  5%  4%  --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-23 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found