Change 20583 by [EMAIL PROTECTED] on 2003/08/09 12:43:50

        Change #20578 to SelfLoader is probably also useful to AutoSplit.

Affected files ...

... //depot/perl/lib/AutoSplit.pm#34 edit

Differences ...

==== //depot/perl/lib/AutoSplit.pm#34 (text) ====
Index: perl/lib/AutoSplit.pm
--- perl/lib/AutoSplit.pm#33~18372~     Sun Dec 29 19:13:42 2002
+++ perl/lib/AutoSplit.pm       Sat Aug  9 05:43:50 2003
@@ -148,10 +148,12 @@
 my $Is_VMS = ($^O eq 'VMS');
 
 # allow checking for valid ': attrlist' attachments
-my $nested;
+# (we use 'our' rather than 'my' here, due to the rather complex and buggy
+# behaviour of lexicals with qr// and (??{$lex}) )
+our $nested;
 $nested = qr{ \( (?: (?> [^()]+ ) | (??{ $nested }) )* \) }x;
-my $one_attr = qr{ (?> (?! \d) \w+ (?:$nested)? ) (?:\s*\:\s*|\s+(?!\:)) }x;
-my $attr_list = qr{ \s* : \s* (?: $one_attr )* }x;
+our $one_attr = qr{ (?> (?! \d) \w+ (?:$nested)? ) (?:\s*\:\s*|\s+(?!\:)) }x;
+our $attr_list = qr{ \s* : \s* (?: $one_attr )* }x;
 
 
 
End of Patch.

Reply via email to