view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
5152535455565758596061for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
lib/Acme/CPANModules/Import/PerlAdvent/2018.pm view on Meta::CPAN
1234567891011our
$DATE
=
'2018-12-30'
;
# DATE
our
$VERSION
=
'0.001'
;
# VERSION
our
$LIST
= {
description
=>
"This list is generated by extracting module names mentioned in [http://perladvent.org/2018/] (retrieved on 2018-12-30). Visit the URL for the full contents."
,
entries
=>[{
module
=>
"Memoize"
},{
module
=>
"Convert::ASN1"
},{
module
=>...
1;
# ABSTRACT: Modules mentioned in Perl Advent Calendar 2018
__END__
lib/Acme/CPANModules/Import/PerlAdvent/2018.pm view on Meta::CPAN
view all matches for this distribution
48495051525354555657=item * L<JSON::XS>
=item * L<XML::Compile::SOAP>
=item * L<Data::Rmap>
=item * L<Array::Sticky>
=item * L<Array::Sticky::INC>
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
5253545556575859606162for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
4849505152535455565758for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
4849505152535455565758for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
5354555657585960616263for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
5051525354555657585960for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
devdata/http_advent.perldancer.org_2018_16 view on Meta::CPAN
view all matches for this distribution
110111112113114115116117118119120121122
return
1
if
$self
-
>
;get_invalid_queues(
@queues
);
return
0;
}
sub
get_invalid_queues(
$self
,
@queues
) {
my
%queue_map
;
@queue_map
{
@QUEUE_TYPES
} = ();
my
@invalid_queues
=
grep
!
exists
$queue_map
{
$_
},
@queues
;
return
@invalid_queues
;
}</pre>
<p>With that in place, it was easy
for
our
<code>queue_job()</code> method to throw an error
if
the developer tried to add a job to an invalid queue:</p>
<pre class=
"prettyprint"
>
sub
queue_job(
$self
,
$args
) {
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3132333435363738394041for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
lib/Acme/CPANModules/Import/RSAVAGE/ClassesRolesWithMooAndMoos.pm view on Meta::CPAN
4567891011121314our
$DATE
=
'2018-09-22'
;
# DATE
our
$VERSION
=
'0.001'
;
# VERSION
our
$LIST
= {
description
=>
"This list is generated by extracting module names mentioned in the article [http://savage.net.au/Module-reviews/html/gci.2012.url.mapper.modules.html] (retrieved on 2016-02-21). For the full article, visit the URL."
,
entries
=> [
{
module
=>
"CGI::Application::Plugin::ActionDispatch"
},
{
module
=>
"CGI::Application::Plugin::REST"
},
{
module
=>
"CGI::Application::Plugin::Routes"
},
{
module
=>
"CGI::Application::URIMapping"
},
lib/Acme/CPANModules/Import/RSAVAGE/ClassesRolesWithMooAndMoos.pm view on Meta::CPAN
view all matches for this distribution
65666768697071727374=head1 DESCRIPTION
Classes and Roles with Moo and Moos (2012).
This list is generated by extracting module names mentioned in the article [http://savage.net.au/Module-reviews/html/gci.2012.url.mapper.modules.html] (retrieved on 2016-02-21). For the full article, visit the URL.
=head1 INCLUDED MODULES
=over
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3637383940414243444546for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3132333435363738394041for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3536373839404142434445for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3132333435363738394041for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3031323334353637383940for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
view all matches for this distribution
3031323334353637383940for
my
$lib
(
@module_files
)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my
$stderr
= IO::Handle->new;
diag(
'Running: '
,
join
(
', '
,
map
{
my
$str
=
$_
;
$str
=~ s/
'/\\'
/g;
q{'}
.
$str
.
q{'}
}
$^X,
@switches
,
'-e'
,
"require q[$lib]"
))
if
$ENV
{PERL_COMPILE_TEST_DEBUG};
my
$pid
= open3(
$stdin
,
'>&STDERR'
,
$stderr
, $^X,
@switches
,
'-e'
,
"require q[$lib]"
);
binmode
$stderr
,
':crlf'
if
$^O eq
'MSWin32'
;
view release on metacpan or search on metacpan
lib/Acme/Cake.pm view on Meta::CPAN
view all matches for this distribution
5758596061626364656667AZMo3+wM3GuxVZREk0+VREuAJ5OnHPfH5FVonTNN1mUIl44vlcMKlxoQHNKDjkr5OpcIVRRtj/BE
DfRldgBpH8UQMmXIEuIgE2aRk65KG5Uidzb5YDsW/kAsxzQUuV2WDPai1BJWioYVZFOmiZydUBhL
gEVFovG+wLasvDxFxsDUqLMqHJIlStkU30QwFVjUbA1jFJUFFQiM0PqQpdiDinjnD8kdGDKlBRlw
15N3tGzarg5p3GTJAbmDb8sCbGnZQABlOX3cDxy+9FHTFsrsyFtQVRAESdL5KMAirZpGlBRFDhGQ
KCXQRtBVGijKk4KRlOO10UIcVutMCHFxdMKKi/o/JLwvwgLhFrsoiomuCEuQjWCo0TQETg3ylwQo
L2KK2oVECaCFp9gbKQMikNAJkyjuVMDB42pV/mapUqKhPgzk7CpGuCo7ISUopjIGp7Xx2bx1N/mv
7FlSws2dONQ89nKxSJFKKaphXJki4SplY5Nfoo2hJORqZEybTBStgDJf28oovfFrmjPIo5FXQGMs
Ml1yTGbgwrpxyUlaLsyCMigE0Q1QDHRFKioSpNAE52qIQFFp/aiAbdcEp32Aw2tgCgvcJfbGyjJT
dmiKG1wQAJ+AASgUlQCpWMAk6i2YNgTJWiaKhpFrgCrZUeGmBuhMyoHFckFCcUFBUOwKYBCoTKIl
TVM58kNv6NRBCbj+i2o5PNNAQ1Q9lgRKLi+Sd1MopMmT44AzYFR1YZblz2jVdmaoZLIIlL2J7KJc
L5sIqiopioKpdlICrIbd9kDhkcXT6Ky800BkSslS4KN3FSXJG3a/giNAClNcWSmBUY7v0W4RS4QR
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
view all matches for this distribution
401402403404405406407408409410411
# Normalise multipart versions
$s
=~ s/(\.)(\d{1,3})/
sprintf
(
"$1%03d"
,$2)/eg;
}
$s
=~ s/^(\d+)\.?//;
my
$l
= $1 || 0;
my
@v
=
map
{
$_
.
'0'
x (3 -
length
$_
)
}
$s
=~ /(\d{1,3})\D?/g;
$l
=
$l
.
'.'
.
join
''
,
@v
if
@v
;
return
$l
+ 0;
}
view release on metacpan or search on metacpan
lib/Acme/Chef.pm view on Meta::CPAN
view all matches for this distribution
88899091929394959697
$_
->compile()
foreach
@recipes
;
$self
->{start_recipe} =
$recipes
[0]->recipe_name();
$self
->{recipes} = {
map
{ (
$_
->recipe_name(),
$_
) }
@recipes
};
return
$self
;
}
view release on metacpan or search on metacpan
t/pod-spelling.t view on Meta::CPAN
view all matches for this distribution
4567891011121314plan
skip_all
=>
'POD tests are only run in RELEASE_TESTING mode.'
unless
$ENV
{
'RELEASE_TESTING'
};
eval
'use Test::Spelling 0.19'
;
plan
skip_all
=>
'Test::Spelling v0.19 required for testing POD'
if
$@;
add_stopwords(
map
{
split
/[\s\:\-]/ }
readline
(
*DATA
) );
$ENV
{LANG} =
'C'
;
all_pod_files_spelling_ok();
__DATA__
MERCHANTABILITY
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
view all matches for this distribution
441442443444445446447448449450451
# Normalise multipart versions
$s
=~ s/(\.)(\d{1,3})/
sprintf
(
"$1%03d"
,$2)/eg;
}
$s
=~ s/^(\d+)\.?//;
my
$l
= $1 || 0;
my
@v
=
map
{
$_
.
'0'
x (3 -
length
$_
)
}
$s
=~ /(\d{1,3})\D?/g;
$l
=
$l
.
'.'
.
join
''
,
@v
if
@v
;
return
$l
+ 0;
}
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Colour/Fuzzy.pm view on Meta::CPAN
view all matches for this distribution
123124125126127128129130131132133134135136137138139140141142# FIXME use some real metric, not made-up computations
my
$max_distance
=
$similar
[-1]{distance};
my
$pivot
= max( (
$max_distance
* 9 / 13 ), 1 );
foreach
my
$similar
(
@similar
) {
my
@words
=
map
{ /^(dark)(\w+)/ ? ( $1, $2 ) : (
$_
) }
map
{ s/\d+//;
$_
}
# remove numbers
split
/[ \-]+/,
$similar
->{name};
my
$weight
= (
$pivot
-
$similar
->{distance} ) /
$pivot
;
foreach
(
@words
) {
$words
{
$_
} +=
$weight
;
}
}
my
@weights
=
sort
{
$b
->[1] <=>
$a
->[1] }
map
[
$_
=>
$words
{
$_
} ],
keys
%words
;
my
@names
;
my
$first_weight
=
$weights
[0][1];
foreach
my
$weight
(
@weights
) {
view release on metacpan or search on metacpan
lib/Acme/Colour.pm view on Meta::CPAN
view all matches for this distribution
3637383940414243444546tie
my
%COLOURS
,
'Graphics::ColorNames'
,
'X'
;
foreach
my
$colour
(
keys
%COLOURS
) {
next
if
$colour
=~ /\d/;
my
(
$r
,
$g
,
$b
)
=
map
{
hex
(
$_
) / 255 }
(
$COLOURS
{
$colour
}
=~ /^\
#?([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/i
);
$r
{
$colour
} =
$r
;
$g
{
$colour
} =
$g
;
view release on metacpan or search on metacpan
inc/Module/Install/Makefile.pm view on Meta::CPAN
105106107108109110111112113114115
die
"tests_recursive dir '$dir' does not exist"
;
}
%test_dir
= ();
File::Find::find( \
&_wanted_t
,
$dir
);
$self
->tests(
join
' '
,
map
{
"$_/*.t"
}
sort
keys
%test_dir
);
}
sub
write
{
my
$self
=
shift
;
die
"&Makefile->write() takes no arguments\n"
if
@_
;
inc/Module/Install/Makefile.pm view on Meta::CPAN
137138139140141142143144145146147148}
# merge both kinds of requires into prereq_pm
my
$prereq
= (
$args
->{PREREQ_PM} ||= {});
%$prereq
= (
%$prereq
,
map
{
@$_
}
map
{
@$_
}
grep
$_
,
(
$self
->build_requires,
$self
->requires)
);
# merge both kinds of requires into prereq_pm
inc/Module/Install/Makefile.pm view on Meta::CPAN
view all matches for this distribution
161162163164165166167168169170171
.
"but we need version >= $perl_version"
;
}
$args
->{INSTALLDIRS} =
$self
->installdirs;
my
%args
=
map
{ (
$_
=>
$args
->{
$_
} ) }
grep
{
defined
(
$args
->{
$_
})}
keys
%$args
;
my
$user_preop
=
delete
$args
{dist}->{PREOP};
if
(
my
$preop
=
$self
->admin->preop(
$user_preop
)) {
$args
{dist} =
$preop
;
}
view release on metacpan or search on metacpan
lib/Acme/ConspiracyTheory/Random.pm view on Meta::CPAN
898899900901902903904905906907908if
(
my
$p
=
$redstring
->{myth_place} ) {
push
@x
, (
"there are clues about $p in the Bible"
,
"there are clues about $p in the Voynich manuscript"
,
"$p is on some old maps"
,
"$p is on Google Maps"
,
);
}
if
(
my
$art
=
$redstring
->{artifact} ) {
lib/Acme/ConspiracyTheory/Random.pm view on Meta::CPAN
11141115111611171118111911201121112211231124
push
@x
, (
"the Wikipedia entry for $p keeps getting edited by $bad"
,
# This has singular/plural problems - how to solve?
"$bad has ties to $p"
,
"$p probably isn't a real place anyway"
,
"$p isn't shown on any maps"
,
);
}
for
my
$actor
(
qw/ protagonists antagonists /
) {
next
unless
$redstring
->{
$actor
}{name};
lib/Acme/ConspiracyTheory/Random.pm view on Meta::CPAN
11641165116611671168116911701171117211731174
"'$name' is an anagram of '$topicname' (if you spell it wrong)"
,
);
}
}
my
@evidences
= List::Util::uniq(
map
{ _RANDOM_(
@x
) } 1..2 );
if
(
@evidences
== 2 ) {
my
(
$e1
,
$e2
) =
@evidences
;
return
_RANDOM_(
"You can tell this is the truth because $e1, and $e2."
,
lib/Acme/ConspiracyTheory/Random.pm view on Meta::CPAN
2195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219sub
numerology {
my
$redstring
=
shift
// {};
my
@strings
= List::Util::uniq(
grep
{
length
}
map
{
my
$letters
=
uc
(
$_
);
$letters
=~ s/[^A-Z0-9]//g;
$letters
}
map
{
/^(the )(.+)$/i ? $2 :
$_
}
map
{
ref
(
$_
) ?
grep
(
defined
,
$_
->{name},
$_
->{shortname},
$_
->{title},
$_
->{author} ) :
$_
}
values
(
%$redstring
)
);
my
%calcs
;
foreach
my
$string
(
@strings
) {
next
if
length
(
$string
) >= 20;
my
@letters
=
split
//,
$string
;
my
@numbers
=
map
/[A-Z]/ ? (
ord
(
$_
) - 0x40 ) :
$_
,
@letters
;
my
$sum
= List::Util::sum(
@numbers
);
push
@{
$calcs
{
$sum
} ||= [] },
sprintf
(
'%s = %s = %s'
,
join
(
'+'
,
@letters
),
lib/Acme/ConspiracyTheory/Random.pm view on Meta::CPAN
22312232223322342235223622372238223922402241
push
@{
$calcs
{
$key
} },
"And guess what? "
.
$statement
;
}
}
}
my
@wow
=
map
{
@$_
> 1 ?
@$_
: () }
values
%calcs
;
if
(
@wow
) {
return
sprintf
(
"%s %s"
,
_RANDOM_(
lib/Acme/ConspiracyTheory/Random.pm view on Meta::CPAN
view all matches for this distribution
22432244224522462247224822492250225122522253
'Trust the numbers.'
,
'You can see the truth in the numbers.'
,
),
join
(
''
,
map
(
"$_. "
,
@wow
),
)
);
}
return
''
;
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
49505152535455565758my
%WriteMakefileArgs
= (
ABSTRACT
=>
$meta
->{abstract},
AUTHOR
=> (
$EUMM
>= 6.5702 ?
$meta
->{author} :
$meta
->{author}[0]),
DISTNAME
=>
$meta
->{name},
VERSION
=>
$meta
->{version},
EXE_FILES
=> [
map
$_
->{file},
values
%{
$meta
->{x_provides_scripts} || {} } ],
NAME
=>
do
{
my
$n
=
$meta
->{name};
$n
=~ s/-/::/g;
$n
},
test
=> {
TESTS
=>
"t/*.t"
},
%dynamic_config
,
);
Makefile.PL view on Meta::CPAN
view all matches for this distribution
99100101102103104105106107108109}
{
my
(
$minperl
) =
reverse
sort
(
grep
defined
&& /^[0-9]+(\.[0-9]+)?$/,
map
$meta
->{prereqs}{
$_
}{requires}{perl},
qw( configure build runtime )
);
if
(
defined
(
$minperl
))
{
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
view all matches for this distribution
401402403404405406407408409410411
# Normalise multipart versions
$s
=~ s/(\.)(\d{1,3})/
sprintf
(
"$1%03d"
,$2)/eg;
}
$s
=~ s/^(\d+)\.?//;
my
$l
= $1 || 0;
my
@v
=
map
{
$_
.
'0'
x (3 -
length
$_
)
}
$s
=~ /(\d{1,3})\D?/g;
$l
=
$l
.
'.'
.
join
''
,
@v
if
@v
;
return
$l
+ 0;
}
view release on metacpan or search on metacpan
lib/Acme/Cow/Interpreter.pm view on Meta::CPAN
3334353637383940414243use
Carp;
our
$VERSION
=
'0.02'
;
# This hash maps each of the 12 command (used in the source code) to the
# corresponding numerical code, from 0 to 11.
my
$cmd2code
=
{
moo
=> 0,
lib/Acme/Cow/Interpreter.pm view on Meta::CPAN
5253545556575859606162
MMM
=> 9,
OOM
=> 10,
oom
=> 11,
};
# This array maps each of the 12 numerical codes to the corresponding
# command (used in source code).
my
$code2cmd
=
[
'moo'
,
lib/Acme/Cow/Interpreter.pm view on Meta::CPAN
223224225226227228229230231232233
$self
-> init();
# Find the string commands, and convert them to numerical codes.
$self
-> {prog} = [
map
{
$cmd2code
-> {
$_
} }
$string
=~ /(
$cmd_regex
)/go
];
return
$self
;
}
lib/Acme/Cow/Interpreter.pm view on Meta::CPAN
view all matches for this distribution
270271272273274275276277278279# Iterate over each line, find the string commands, and convert them to
# numerical codes.
while
(<FILE>) {
push
@{
$self
-> {prog} },
map
{
$cmd2code
-> {
$_
} }
/(
$cmd_regex
)/go;
}
close
FILE or croak
"$file: can't close file after reading: $!"
;
view release on metacpan or search on metacpan
Cow/TextBalloon.pm view on Meta::CPAN
view all matches for this distribution
179180181182183184185186187188189}
push
(
@balloon_lines
,
"$shove "
. (
"_"
x
$max2
) .
"\n"
,
sprintf
(
$format
,
$border
[0],
$message
[0],
$border
[1]),
(
@message
< 2 ?
""
:
map
{
sprintf
(
$format
,
$border
[4],
$_
,
$border
[5]) }
@message
[1 ..
$#message
- 1]),
(
@message
< 2 ?
""
:
sprintf
(
$format
,
$border
[2],
$message
[
$#message
],
$border
[3])),
"$shove "
. (
"-"
x
$max2
) .
"\n"
);