Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: regex with capture groups and branch reset crashes perl

by mr_mischief (Monsignor)
on Dec 11, 2015 at 14:58 UTC ( #1150040=note: print w/replies, xml ) Need Help??


in reply to regex with capture groups and branch reset crashes perl

I tried this on a few versions.

These passed (OS X, MacPorts):

  • 5.16.3
  • 5.18.4
  • 5.20.3
  • 5.22.0
These also passed (CentOS):
  • 5.14.4
  • 5.16.3
These failed:
  • 5.10.1 on CentOS 6 (stopped at 4, no crash though)
  • 5.8.8 on CentOS 5 (got confused by '(?|' syntax and threw an error)

This really seems to be something caused by an older version as others have said. I would recommend updating to a newer version and testing.

  • Comment on Re: regex with capture groups and branch reset crashes perl

Replies are listed 'Best First'.
Re^2: regex with capture groups and branch reset crashes perl
by AnomalousMonk (Archbishop) on Dec 11, 2015 at 18:39 UTC
    • 5.8.8 on CentOS 5 (got confused by '(?|' syntax and threw an error)

    The '(?|' syntax was only introduced with Perl version 5.10.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2022-12-05 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?