in reply to Re^2: Can't coerce UNKNOWN to string in substitution iterator (splain, (??{}))
in thread Can't coerce UNKNOWN to string in substitution iterator
Hi
I think the X is to prevent the regex from matching. Isn't there a better way to do that?
That is a good observation
Maybe, there are http://perldoc.perl.org/perlre.html#Verbs for that, more on this at the end of this post
Taking a second look at output of (??{ versus (?{
v5.16.1
|
|
v5.18.2
|
|
As you can see all three versions end the final result of
they just get there by different order of add/delete, not sure how important this isNUMBERS:[1:33 ]
Only the crashing/buggy version returns something different when its able to complete under -Mre=debug
Now back to verbs, using
makes it fail in the exact same way, which is not too surprising$2 - $1 <= $c ? '(*FAIL)' : '(*ACCEPT)'
Using *PRUNE or $2 - $1 <= $c ? '(*SKIP)' : '(*ACCEPT)' and its just like using (?{
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't coerce UNKNOWN to string in substitution iterator (splain, (??{}))
by AnomalousMonk (Archbishop) on Oct 11, 2016 at 01:48 UTC | |
by beech (Parson) on Oct 11, 2016 at 01:55 UTC |