Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

regex gotcha moving from 5.8.8 to 5.30.0?

by mordibity (Acolyte)
on Feb 09, 2021 at 19:35 UTC ( [id://11128141]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub parse_foo {
        my ($text) = @_;
    ...
        }
        print "LAST FOO: $name\n";
    }
    
  2. or download this
      last if $text =~ /\G \s* \Z/gcmsx;
      # spent   181ms making 866465 calls to main::CORE:match, avg 208ns/c
    +all
      if     ($text =~ /\G \s* ^ \s* begfoo \s+ (\S+?) \s* \( \s* (.*?) \s
    +* \) \s* ;/gcmsx) { $name = $1 }
      # spent  3.74s making 2547279 calls to main::CORE:match, avg 1µs/cal
    +l
    
  3. or download this
      last if $text =~ /\G \s* \Z/gcmsx;
      # spent  289ms making 866465 calls to main::CORE:match, avg 334ns/ca
    +ll
      if     ($text =~ /\G \s* ^ \s* begfoo \s+ (\S+?) \s* \( \s* (.*?) \s
    +* \) \s* ;/gcmsx) { $name = $1 }
      # spent   103s making 2547279 calls to main::CORE:match, avg 41µs/ca
    +ll
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11128141]
Approved by haukex
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found