| 1 | package | ||
| 2 | TestModule; | ||
| 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 default => 'failobj'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | our $DIE_LINE = -1; | |
| 11 | |||
| 12 | sub dont_succeed { | ||
| 13 | |||
| 14 | 1 | ▶ | $DIE_LINE = __FILE__ . ' line ' . (__LINE__ + 1); |
|
Subroutine
dont_succeed: called CC=1 SCAR=0.2
Pod
undocumented
| |||
| 15 | 1 | fail "Didn't succeed"; | |
| 16 | |||
| 17 | 0 | return 'This value should never be returned'; | |
| 18 | } | ||
| 19 | |||
| 20 | # Module implementation here | ||
| 21 | |||
| 22 | |||
| 23 | 1 | 1; # Magic true value required at end of module | |
| 24 | |||