in reply to Re: Bug with finding all regexp matches
in thread Bug with finding all regexp matches
for the missing "0 1 234" the trace hasperl -e 'use re "debug"; "01234" =~ /^(.+)(.+)((?:.z?)+)$(?{ print "$1 + $2 $3\n" })(*FAIL)/' 2>&1 | less
and my wild guess is that it cached the effect of (*FAIL) and not the real failure of a regexp, hence EVAL is skipped and last result is missed. I didn't find the way to disable the cache with "use re".whilem: (cache) already tried at this position... failed...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bug with finding all regexp matches
by Anonymous Monk on Oct 15, 2016 at 18:18 UTC | |
by Anonymous Monk on Oct 15, 2016 at 19:07 UTC | |
by dave_the_m (Monsignor) on Oct 15, 2016 at 21:02 UTC | |
by Anonymous Monk on Oct 15, 2016 at 21:40 UTC | |
by dave_the_m (Monsignor) on Oct 16, 2016 at 09:15 UTC |