| 1 | 2 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 2 | ▶ | use Exporter (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | package Devel::StrictMode; | ||||||||||
| 8 | |||||||||||
| 9 | 2 | our $AUTHORITY = 'cpan:TOBYINK'; | |||||||||
| 10 | 2 | our $VERSION = '0.003'; | |||||||||
| 11 | 2 | our @ISA = qw( Exporter ); | |||||||||
| 12 | 2 | our @EXPORT = qw( STRICT ); | |||||||||
| 13 | 2 | our @EXPORT_OK = qw( LAX ); | |||||||||
| 14 | |||||||||||
| 15 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=3 SCAR=11.0
| |||||||||||
| 16 | 2 | my $strict = 0; | |||||||||
| 17 | $ENV{$_} && $strict++ | ||||||||||
| 18 | 2 | ▶ | for qw( | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | EXTENDED_TESTING | ||||||||||
| 20 | AUTHOR_TESTING | ||||||||||
| 21 | RELEASE_TESTING | ||||||||||
| 22 | PERL_STRICT | ||||||||||
| 23 | ); | ||||||||||
| 24 | |||||||||||
| 25 | 2 | eval " | |||||||||
| 26 | sub STRICT () { !! $strict } | ||||||||||
| 27 | sub LAX () { ! $strict } | ||||||||||
| 28 | "; | ||||||||||
| 29 | }; | ||||||||||
| 30 | |||||||||||
| 31 | 2 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||