Algorithm-KernelKMeans
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
437438439440441442443444445446447448449450451452453454455456457sub
_version ($) {
my
$s
=
shift
|| 0;
my
$d
=()=
$s
=~ /(\.)/g;
if
(
$d
>= 2 ) {
# 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;
}
sub
_cmp ($$) {
_version(
$_
[0]) <=> _version(
$_
[1]);
}
# Cloned from Params::Util::_CLASS
inc/Module/Install/Makefile.pm view on Meta::CPAN
150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
for
my
$subdir
(
@_
) {
push
@$subdirs
,
$subdir
;
}
}
sub
clean_files {
my
$self
=
shift
;
my
$clean
=
$self
->makemaker_args->{clean} ||= {};
%$clean
= (
%$clean
,
FILES
=>
join
' '
,
grep
{
length
$_
} (
$clean
->{FILES} || (),
@_
),
);
}
sub
realclean_files {
my
$self
=
shift
;
my
$realclean
=
$self
->makemaker_args->{realclean} ||= {};
%$realclean
= (
%$realclean
,
FILES
=>
join
' '
,
grep
{
length
$_
} (
$realclean
->{FILES} || (),
@_
),
);
}
sub
libs {
my
$self
=
shift
;
my
$libs
=
ref
$_
[0] ?
shift
: [
shift
];
$self
->makemaker_args(
LIBS
=>
$libs
);
}
sub
inc {
( run in 0.312 second using v1.01-cache-2.11-cpan-95122f20152 )