Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Regex Start Anchor with variables

by Hue-Bond (Priest)
on Oct 05, 2006 at 13:26 UTC ( [id://576527]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark 'cmpthese';
    my $str1 = 'foobarbazqux';
    my $str2 = 'foobar';
    ...
    substr  1421801/s     34%     16%      --    -23%    -63%
    substr2 1851852/s     74%     51%     30%      --    -51%
    index   3797468/s    257%    209%    167%    105%      --
    
  2. or download this
    use Benchmark 'cmpthese';
    my $str1 = 'foobarbazqux';
    my $str2 = 'foobar';
    ...
    substr  1630435/s    143%      --    -16%    -30%
    substr2 1935484/s    188%     19%      --    -17%
    index   2343750/s    249%     44%     21%      --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found