We don't bite newbies here... much | |
PerlMonks |
Re: Broken compatibility for recursive regex in Perl 5.8.4by diotalevi (Canon) |
on May 24, 2004 at 23:33 UTC ( [id://356081]=note: print w/replies, xml ) | Need Help?? |
I can't see how the previous behaviour was correct. When I've written this sort of thing the obvious and normal thing (to me of course) was to declare the lexical on the preceding line and then allow the regexp to capture it in its closure. Similarly, my $foo; $foo = sub { ... $foo->( ... ) ... }. If you're going to have it operate on something that is operating by lexical rules, then expect to have to treat it by lexical rules.
In Section
Meditations
|
|