in reply to Re: (??{ lexical variable })
in thread (??{ lexical variable })

Would a closure be close to what you want?

Not really, as the snippet I pasted is part of a larger whole:

{ my %exlinx; my $link = qr/ \[ (?: ([^|\]]*) \| )? ([^\]]*) \] /x; # 1: u +rl 2: text my $inlinetag = do { our $acc = qr/(?> \{ (?: (?> \\. | [^\\{}]+ | (??{ $acc }) ) )* + \} )/x; qr/ \{ (\w+): ( (?: (?> \\. | [^\\{}]+ | (??{ $acc }) ) )* +) \} /x; }; # 1: tag 2: text my $overig = qr/(?: (?> \\. | [^{\[\\]+ ) )*/sx; # -: text my $stuff = qr/(?> $overig ) | (?> $link ) | (?> $inlinetag ) +/x; my $paratag = qr/(\w+):\s*/; my $n = qr/\n\s*\n/; # These return html-ified versions of the input sub inlineparse { ... } sub paraparse { ... } sub colorize { ... } }

it may help to note that (??{}) are done like quoted eval, compiled in an interlude during runtime.

That does help a little, but why doesn't it give me the famous Global symbol "$acc" requires explicit package name, then? I have no $acc declared in the scope where $inlinetag is being used.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.