in reply to Re^2: curious regex result for perl 5.8.8
in thread curious regex result for perl 5.8.8
"That's not strictly accurate."
Oh yes it is, probably! If there was no match then it's easy to argue that there should be no capture. If there was no capture the contents of the capture variables should be undef. The current "last capture" behavior then can easily and accurately be described as bogus. :-)
I can understand that there are compelling (probably historical compatibility) reasons for the current behavior. In a big picture sense that doesn't make the behavior less bogus.
Besides, bogus is a fun word so I like to use it - what's bogus with that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: curious regex result for perl 5.8.8
by Anonymous Monk on Jun 22, 2016 at 02:15 UTC | |
by GrandFather (Saint) on Jun 22, 2016 at 04:13 UTC |