Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Bug or feature? s/// and the g option

by ysth (Canon)
on Oct 14, 2007 at 19:46 UTC ( [id://644787]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Bug or feature? s/// and the g option
in thread Bug or feature? s/// and the g option

AIUI, without the i, before the regex engine proper is entered, there's an optimization that makes it search for an XX followed later by a Y. That optimization rejects a match, and when that happens, it bypasses the bug that's setting $1 to undef. Seems to be fixed for 5.10.0.
  • Comment on Re^3: Bug or feature? s/// and the g option

Replies are listed 'Best First'.
Re^4: Bug or feature? s/// and the g option
by Belgarion (Chaplain) on Oct 14, 2007 at 20:14 UTC
    Ah, thanks for the explanation ysth!
    --rjk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-09-14 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.