Autodie-Hints

autodie::hints(3p) Perl Programmers Reference Guide autodie::hints(3p)

Autodie-Hints

autodie::hints(3p) Perl Programmers Reference Guide autodie::hints(3p) # autodie::hints(3p) Perl Programmers Reference Guide autodie::hints(3p) NNAAMMEE # autodie::hints - Provide hints about user subroutines to autodie SSYYNNOOPPSSIISS # package Your::Module; our %DOES = ( 'autodie::hints::provider' => 1 ); sub AUTODIE_HINTS { return { foo => { scalar => HINTS, list => SOME_HINTS }, bar => { scalar => HINTS, list => MORE_HINTS }, } } # Later, in your main program... use Your::Module qw(foo bar); use autodie qw(:default foo bar); foo(); # succeeds or dies based on scalar hints # Alternatively, hints can be set on subroutines we've # imported. ...