NAME

Hades::Macro::Dolos - Hades macro helpers for Dolos

VERSION

Version 0.01

SYNOPSIS

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;
			}
		}
	|;
});

SUBROUTINES/METHODS

new

Instantiate a new Hades::Macro::Dolos object.

Hades::Macro::Dolos->new

autoload_cb

call autoload_cb method. Expects param $mg to be a Object, param $cb to be a Str.

$obj->autoload_cb($mg, $cb)

caller

call caller method. Expects param $mg to be a Object, param $variable to be a Str.

$obj->caller($mg, $variable)

clear_unless_keys

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_sub

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_sub_my

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)

delete

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)

die_unless_keys

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)

else

call else method. Expects param $mg to be a Object, param @code to be any value including undef.

$obj->else($mg, @code)

elsif

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)

export

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)

for

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)

foreach

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)

for_keys

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)

for_key_exists_and_return

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)

grep

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)

grep_map

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)

if

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)

map

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)

map_grep

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)

maybe

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)

merge_hash_refs

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)

require

call require method. Expects param $mg to be a Object, param $variable to be a Str.

$obj->require($mg, $variable)

unless

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)

while

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)

ACCESSORS

macro

get or set macro.

$obj->macro;

$obj->macro($value);

AUTHOR

LNATION, <email at lnation.org>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Hades::Macro::Dolos

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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:

Around line 587:

Non-ASCII character seen before =encoding in '€if($dolos,€if($dolos'. Assuming UTF-8