in reply to Re: (??{ code }) versus (?PARNO) for recursive regular expressions
in thread (??{ code }) versus (?PARNO) for recursive regular expressions
My previous time using (??{ code }) 5 years ago, I declared everything using our and of course did use strict. However, that doesn't have any effect on this code now:
our $braces_re = qr/ ... (??{ $braces_re }) ... ) /sx;
Still throws a strictures warning. The only way I've observed being able to get it to work now is by having the variable predeclared, regardless of whether it's done using my or our.
If it helps, it probably was more like 9-10 years ago. Basically very soon after the (??{ code }) feature was introduced.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: (??{ code }) versus (?PARNO) for recursive regular expressions
by ikegami (Patriarch) on Mar 25, 2011 at 22:47 UTC | |
by wind (Priest) on Mar 25, 2011 at 23:32 UTC | |
by ikegami (Patriarch) on Mar 25, 2011 at 23:46 UTC | |
by wind (Priest) on Mar 26, 2011 at 00:45 UTC | |
by ikegami (Patriarch) on Mar 26, 2011 at 02:49 UTC | |
|