| 1 | package Local::PkgNoisy; | ||
| 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 | # A file with a package statement is analyzed directly. Its compile-time code | ||
| 7 | # still runs when Test::Vars requires it; that output (and any stray TAP) must | ||
| 8 | # not leak through perlvars, while the genuine finding below is still reported. | ||
| 9 | 2 | ▶ | BEGIN { print STDERR "compile-time noise from a packaged file\n"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 0 | ▶ | sub noisy { |
|
Subroutine
noisy: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | 0 | my $unused_pkg_var = 42; | |
| 13 | 0 | return; | |
| 14 | } | ||
| 15 | |||
| 16 | 2 | 1; | |