| 1 | package Local::NoImport; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '1.00'; | |
| 7 | |||
| 8 | # Intentionally defines no import() method and no exports. Calling | ||
| 9 | # `use Local::NoImport qw( ... )` therefore makes Perl emit its "Attempt to | ||
| 10 | # call undefined/missing import method" diagnostic. t/Sandbox.t uses this to | ||
| 11 | # verify App::perlimports::Sandbox suppresses that trial-load noise, whatever | ||
| 12 | # wording the running Perl uses for the warning (see GH #181). | ||
| 13 | |||
| 14 | 2 | 1; | |