Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Get a known substring from a string

by Corion (Patriarch)
on Sep 10, 2016 at 09:42 UTC ( [id://1171508]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # a:  if( $s =~ m[(lazy)] ){ $found=$1 }
    Compiling REx "(lazy)"
    ...
    a 2038631/s   -- -50% -75%
    c 4089154/s 101%   -- -49%
    b 8013601/s 293%  96%   --
    
  2. or download this
    use strict;
    use Benchmark 'cmpthese';
    ...
    
    cmpthese( -1, \%benchmarks);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2024-03-28 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found