This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
/(?p{})/ changed to /(??{})/, per Larry's suggestion (from
[perl5.git] / lib / AutoSplit.pm
index ecdb039..0be3ae6 100644 (file)
@@ -148,7 +148,7 @@ my $Is_VMS = ($^O eq 'VMS');
 
 # allow checking for valid ': attrlist' attachments
 my $nested;
-$nested = qr{ \( (?: (?> [^()]+ ) | (?p{ $nested }) )* \) }x;
+$nested = qr{ \( (?: (?> [^()]+ ) | (??{ $nested }) )* \) }x;
 my $one_attr = qr{ (?> (?! \d) \w+ (?:$nested)? ) (?:\s*\:\s*|\s+(?!\:)) }x;
 my $attr_list = qr{ \s* : \s* (?: $one_attr )* }x;