Alt-Math-Prime-FastSieve-Inline
view release on metacpan or search on metacpan
inc/Inline/CPP.pm view on Meta::CPAN
137138139140141142143144145146147148149150151152153154155156157
}
return
@propagate
;
}
sub
_handle_namespace_cfg_option {
my
(
$o
,
$value
) =
@_
;
$value
=~ s/^::|::$//g;
# Perl 5.12 indroduced \p{XID_Start} and \p{XID_Continue}. Prior to that
# we should downgrade gracefully.
my
$ident
= $] ge
'5.0120'
?
qr{[\p{XID_Start}
_][\p{XID_Continue}_]*}
:
qr{[\p{Alpha}
_][\p{Alpha}\p{Digit}_]*};
croak
"$value is an invalid package name."
unless
length
$value
== 0
||
$value
=~ m/
\A
$ident
(?:::
$ident
)*
\z
( run in 0.549 second using v1.01-cache-2.11-cpan-26ccb49234f )