in reply to Re^4: (??{ code }) versus (?PARNO) for recursive regular expressions
in thread (??{ code }) versus (?PARNO) for recursive regular expressions
The thing as, as I understand the documentation of perlre, [use strict; our $x = qr/... (??{ $x }) .../ ] should be allowed
You're using a variable ($x) you haven't declared yet. It's a strict error just like
$ perl -e'use strict; our $x = $x;' $
huh... what? I guess I was wrong. our declarations take effect immediately. I don't see why «our $x = $x;» and «our $x = qr/(??{ $x })/;» can behave differently. It would seem there's a bug here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: (??{ code }) versus (?PARNO) for recursive regular expressions
by wind (Priest) on Mar 26, 2011 at 00:45 UTC | |
by ikegami (Patriarch) on Mar 26, 2011 at 02:49 UTC | |
by wind (Priest) on Mar 26, 2011 at 03:32 UTC | |
by ikegami (Patriarch) on Mar 26, 2011 at 03:48 UTC |