Enbld
view release on metacpan or search on metacpan
lib/Enbld.pm view on Meta::CPAN
188189190191192193194195196197198199200201202203204205206207208
foreach
my
$target
(
sort
keys
%target_result
) {
Enbld::Message->notify(
$target_result
{
$target
} );
}
foreach
my
$file
(
sort
keys
%rcfile_result
) {
Enbld::Message->notify(
$rcfile_result
{
$file
} );
}
}
sub
build(&) {
return
$_
[0];
}
our
$condition_ref
;
sub
target($$) {
my
(
$targetname
,
$coderef
) =
@_
;
if
( !
$initialized
) {
_err(
lib/Enbld.pm view on Meta::CPAN
231232233234235236237238239240241242243244245246247248249250251
};
$coderef
->();
my
$condition
= Enbld::Condition->new( %{
$condition_ref
} );
$target_collection
{
$targetname
} =
$condition
;
undef
$condition_ref
;
}
sub
define(&) {
my
$coderef
=
shift
;
return
$coderef
;
}
sub
version($) {
my
$version
=
shift
;
if
(
ref
(
$version
) ) {
_err(
"Function 'version' requires string type parameter."
);
lib/Enbld.pm view on Meta::CPAN
361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
return
$result
;
}
# Configuration file is not loaded or set.
$rcfile_result
{
$rcfile
->filepath} =
$rcfile
->filepath .
' is not created.'
;
return
;
}
sub
load(&) {
$rcfile_condition
->{command} =
'load'
;
return
$_
[0];
}
sub
set(&) {
$rcfile_condition
->{command} =
'set'
;
return
$_
[0];
}
sub
copy(&) {
$rcfile_condition
->{command} =
'copy'
;
return
$_
[0];
}
sub
from($) {
my
$from
=
shift
;
if
(
ref
(
$from
) ) {
_err(
"Function 'from' requsres string type parameter."
);
( run in 0.363 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )