| 1 | package | ||
| 2 | SetterErrorModule; | ||
| 3 | 1 | our $VERSION = '0.000001'; | |
| 4 | |||
| 5 | 1 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | use Lexical::Failure; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | |||
| 11 | sub import { | ||
| 12 | 1 | ▶ | my (undef, undef, $errors) = @_; |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ON_FAILURE($errors); | |
| 14 | } | ||
| 15 | |||
| 16 | 1 | our $CROAK_LINE = __FILE__ . ' line ' . (__LINE__ + 2); | |
| 17 | 1 | ▶ | sub dont_succeed { |
|
Subroutine
dont_succeed: called CC=1 SCAR=2.0
Pod
undocumented
| |||
| 18 | 1 | ON_FAILURE('carp'); | |
| 19 | 0 | ||
| 20 | 0 | fail "The fail should never happen"; | |
| 21 | 0 | return 'This value should never be returned'; | |
| 22 | } | ||
| 23 | |||
| 24 | # Module implementation here | ||
| 25 | |||
| 26 | |||
| 27 | 1 | 1; # Magic true value required at end of module | |
| 28 | |||