Tangerine::Hook - A simple hook object.
my $hook = Tangerine::Hook->new( type => 'prov', run => \&Tangerine::hook::package::run ); $hook->run([ qw/use strict ;/]);
Hooks hold a code reference to the actual hook routine. They also have a type property which may be one of prov, req or use to denote whether this hook is returns provided modules or modules required at run-time or compile-time respectively.
prov
req
use
Code references expect a statement to process. This is simply a list reference of PPI::Statement's significant children.
type
Returns or sets the hook type. May be one of prov, req or use.
run
Returns or set the hook code reference.
Tangerine, PPI::Statement
Tangerine
PPI::Statement
Petr Šabata <contyk@redhat.com>
Copyright (c) 2014 Petr Šabata
See LICENSE for licensing details.
To install Tangerine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tangerine
CPAN shell
perl -MCPAN -e shell install Tangerine
For more information on module installation, please visit the detailed CPAN module installation guide.