Rex::Hook - manage Rex hooks
This module manages hooks of various Rex functions.
use Rex::Hook; register_function_hooks { $state => { $function => $coderef, }, };
Registers a $coderef to be called when $function reaches $state during its execution.
$coderef
$function
$state
For example:
register_function_hooks { before_change => { file => \&backup } };
$coderef may get parameters passed to it depending on the hook in question. See the given hook's documentation about details.
To install Rex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex
CPAN shell
perl -MCPAN -e shell install Rex
For more information on module installation, please visit the detailed CPAN module installation guide.