Devel-PPPort
view release on metacpan or search on metacpan
155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538
if
(
$opt
{hints} &&
exists
$hints
{
$func
} && !
$given_hints
{
$func
}++) {
my
$hint
=
$hints
{
$func
};
$hint
=~ s/^/ /mg;
" --- hint for $func ---\n"
,
$hint
;
}
$rv
|| 0;
}
sub
usage
{
my
(
$usage
) =
do
{
local
(
@ARGV
,$/)=($0); <> } =~ /^=head\d
$HS
+SYNOPSIS\s*^(.*?)\s*^=/ms;
my
%M
= (
'I'
=>
'*'
);
$usage
=~ s/^\s
*perl
\s+\S+/$^X $0/;
$usage
=~ s/([A-Z])<([^>]+)>/
$M
{$1}$2
$M
{$1}/g;
<<ENDUSAGE;
Usage: $usage
See perldoc $0 for details.
ENDUSAGE
exit
2;
}
sub
strip
{
my
$self
=
do
{
local
(
@ARGV
,$/)=($0); <> };
my
(
$copy
) =
$self
=~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
$copy
=~ s/^(?=\S+)/ /gms;
$self
=~ s/^
$HS
+Do NOT edit.*?(?=^-)/
$copy
/ms;
$self
=~ s/^SKIP.*(?=^__DATA__)/SKIP
if
(\
@ARGV
&& \
$ARGV
[0] eq
'--unstrip'
) {
\$@ and
die
"Cannot require Devel::PPPort, please install.\\n"
;
if
(
eval
\
$Devel::PPPort::VERSION
<
$VERSION
) {
die
"$0 was originally generated with Devel::PPPort $VERSION.\\n"
.
"Your Devel::PPPort is only version \$Devel::PPPort::VERSION.\\n"
devel/scanprov view on Meta::CPAN
269270271272273274275276277278279280281282283284285286287288289my
%v
;
# We look in descending order of perl versions. Each time through the
# loop %remaining is narrowed.
for
my
$p
(
@$perls_ref
) {
"checking perl $p->{version}...\n"
;
# Get the hdr files associated with this version
my
$archlib
= `
$p
->{path} -MConfig -l -e
'print \$Config{archlib}'
`;
chomp
$archlib
;
local
@ARGV
;
push
@ARGV
,
glob
"$archlib/CORE/$_"
for
@$hdrs
;
# %sym's keys are every single thing that looks like an identifier
# (beginning with a non-digit \w, followed by \w*) that occurs in any
# header, regardless of where (outside of comments). For macros, it
# can't end in an underscore, nor be like 'AbCd', which are marks for
# internal.
my
%sym
;
local
$/ =
undef
;
parts/inc/ppphbin view on Meta::CPAN
901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
if
(
$opt
{hints} &&
exists
$hints
{
$func
} && !
$given_hints
{
$func
}++) {
my
$hint
=
$hints
{
$func
};
$hint
=~ s/^/ /mg;
" --- hint for $func ---\n"
,
$hint
;
}
$rv
|| 0;
}
sub
usage
{
my
(
$usage
) =
do
{
local
(
@ARGV
,$/)=($0); <> } =~ /^=head\d
$HS
+SYNOPSIS\s*^(.*?)\s*^=/ms;
my
%M
= (
'I'
=>
'*'
);
$usage
=~ s/^\s
*perl
\s+\S+/$^X $0/;
$usage
=~ s/([A-Z])<([^>]+)>/
$M
{$1}$2
$M
{$1}/g;
<<ENDUSAGE;
Usage: $usage
See perldoc $0 for details.
ENDUSAGE
exit
2;
}
sub
strip
{
my
$self
=
do
{
local
(
@ARGV
,$/)=($0); <> };
my
(
$copy
) =
$self
=~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
$copy
=~ s/^(?=\S+)/ /gms;
$self
=~ s/^
$HS
+Do NOT edit.*?(?=^-)/
$copy
/ms;
$self
=~ s/^SKIP.*(?=^__DATA__)/SKIP
if
(\
@ARGV
&& \
$ARGV
[0] eq
'--unstrip'
) {
\$@ and
die
"Cannot require Devel::PPPort, please install.\\n"
;
if
(
eval
\
$Devel::PPPort::VERSION
<
$VERSION
) {
die
"$0 was originally generated with Devel::PPPort $VERSION.\\n"
.
"Your Devel::PPPort is only version \$Devel::PPPort::VERSION.\\n"
( run in 0.255 second using v1.01-cache-2.11-cpan-49f99fa48dc )