Hades::Macro::Dolos - Hades macro helpers for Dolos
Version 0.01
Quick summary of what the module does:
Hades->run({ eval => q| macro { Dolos } Kosmos { psyche $dolos :t(Int) $eros :t(HashRef) $psyche :t(HashRef) { €if($dolos,€if($dolos > 10, return $eros;);, €elsif($dolos > 5, €merge_hash_refs($eros, $psyche););, €else(return $psyche;);); return undef; } } |; });
Instantiate a new Hades::Macro::Dolos object.
Hades::Macro::Dolos->new
call autoload_cb method. Expects param $mg to be a Object, param $cb to be a Str.
$obj->autoload_cb($mg, $cb)
call caller method. Expects param $mg to be a Object, param $variable to be a Str.
$obj->caller($mg, $variable)
call clear_unless_keys method. Expects param $mg to be a Object, param $variable to be a Str, param $hash to be a Str.
$obj->clear_unless_keys($mg, $variable, $hash)
call call_sub method. Expects param $mg to be a Object, param $sub to be any value including undef, param @params to be any value including undef.
$obj->call_sub($mg, $sub, @params)
call call_sub_my method. Expects param $mg to be a Object, param $my to be a Str, param $sub to be any value including undef, param @params to be any value including undef.
$obj->call_sub_my($mg, $my, $sub, @params)
call delete method. Expects param $mg to be a Object, param $hash to be a Str, param $key to be a Str, param $variable to be a Optional[Str], param $or to be a Optional[Str], param $list to be a Optional[Bool].
$obj->delete($mg, $hash, $key, $variable, $or, $list)
call die_unless_keys method. Expects param $mg to be a Object, param $hash to be a Str, param $error to be a Str.
$obj->die_unless_keys($mg, $hash, $error)
call else method. Expects param $mg to be a Object, param @code to be any value including undef.
$obj->else($mg, @code)
call elsif method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->elsif($mg, $condition, @code)
call export method. Expects param $mg to be a Object, param $method to be a Str, param $code to be a Str, param $no_warnings to be a Int, param $caller to be a Str.
$obj->export($mg, $method, $code, $no_warnings, $caller)
call for method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->for($mg, $condition, @code)
call foreach method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->foreach($mg, $condition, @code)
call for_keys method. Expects param $mg to be a Object, param $hash to be a Str, param $key to be a Str, param @code to be any value including undef.
$obj->for_keys($mg, $hash, $key, @code)
call for_key_exists_and_return method. Expects param $mg to be a Object, param $hash to be a Str, param $for to be a Str.
$obj->for_key_exists_and_return($mg, $hash, $for)
call grep method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->grep($mg, $condition, @code)
call grep_map method. Expects param $mg to be a Object, param $condition to be a Str, param $grep_code to be a Str, param @map_code to be any value including undef.
$obj->grep_map($mg, $condition, $grep_code, @map_code)
call if method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->if($mg, $condition, @code)
call map method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->map($mg, $condition, @code)
call map_grep method. Expects param $mg to be a Object, param $condition to be a Str, param $grep_code to be a Str, param @map_code to be any value including undef.
$obj->map_grep($mg, $condition, $grep_code, @map_code)
call maybe method. Expects param $mg to be a Object, param $key to be a Str, param $variable to be a Str.
$obj->maybe($mg, $key, $variable)
call merge_hash_refs method. Expects param $mg to be a Object, param @hashes to be any value including undef.
$obj->merge_hash_refs($mg, @hashes)
call require method. Expects param $mg to be a Object, param $variable to be a Str.
$obj->require($mg, $variable)
call unless method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->unless($mg, $condition, @code)
call while method. Expects param $mg to be a Object, param $condition to be a Str, param @code to be any value including undef.
$obj->while($mg, $condition, @code)
get or set macro.
$obj->macro; $obj->macro($value);
LNATION, <email at lnation.org>
<email at lnation.org>
Please report any bugs or feature requests to bug-hades::macro::dolos at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hades-Macro-Dolos. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-hades::macro::dolos at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Hades::Macro::Dolos
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Hades-Macro-Dolos
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Hades-Macro-Dolos
CPAN Ratings
https://cpanratings.perl.org/d/Hades-Macro-Dolos
Search CPAN
https://metacpan.org/release/Hades-Macro-Dolos
This software is Copyright (c) 2020 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '€if($dolos,€if($dolos'. Assuming UTF-8
To install Hades, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hades
CPAN shell
perl -MCPAN -e shell install Hades
For more information on module installation, please visit the detailed CPAN module installation guide.