| 1 | package Klonk::pragma 0.01; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings FATAL => qw(uninitialized); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use constant MIN_PERL_VERSION => '5.36'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | no feature ':all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use feature ':' . MIN_PERL_VERSION; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | no feature qw(bareword_filehandles); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Function::Parameters 2; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use Carp (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 3 | ▶ | method import($class: @items) { | ||||||||
|
Subroutine
import: called CC=3 SCAR=11.1
Branch: 1 branch
| |||||||||||
| 14 | 3 | for my $item (@items) { | |||||||||
| 15 | 0 | Carp::croak qq("$item" is not exported by the $class module); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 3 | strict->import; | |||||||||
| 19 | 3 | warnings->import; | |||||||||
| 20 | 3 | warnings->import(FATAL => 'uninitialized'); | |||||||||
| 21 | 3 | feature->unimport(':all'); | |||||||||
| 22 | 3 | feature->import(':' . MIN_PERL_VERSION); | |||||||||
| 23 | 3 | feature->unimport('bareword_filehandles'); | |||||||||
| 24 | 3 | Function::Parameters->import; | |||||||||
| 25 | 1 | } | |||||||||
| 26 | |||||||||||
| 27 | 1 | 1 | |||||||||
| 28 | __END__ | ||||||||||