| 1 | package Perl::Core; | ||||||||||
| 2 | 2 | $Perl::Core::VERSION = '0.0100'; | |||||||||
| 3 | 2 | ▶ | use 5.010_000; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use match::simple (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use mro (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | ▶ | use feature (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 2 | ▶ | use PerlX::Define (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 2 | ▶ | use PerlX::Maybe (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 2 | ▶ | use Syntax::Feature::Try (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 2 | ▶ | use Sub::Infix (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 2 | ▶ | use constant DEFAULT_VERSION => ':5.14'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | sub import | ||||||||||
| 19 | 1 | ▶ | { | ||||||||
|
Subroutine
import: called CC=2 SCAR=6.9
| |||||||||||
| 20 | 1 | my ($class, $version) = @_; | |||||||||
| 21 | 1 | my $caller = scalar caller(); | |||||||||
| 22 | |||||||||||
| 23 | 1 | warnings->import; | |||||||||
| 24 | 1 | strict->import; | |||||||||
| 25 | 1 | ▶ | feature->import( $version ? ":$version" : DEFAULT_VERSION ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 1 | mro::set_mro($caller, 'c3'); | |||||||||
| 27 | |||||||||||
| 28 | 1 | PerlX::Define->import; | |||||||||
| 29 | 1 | Syntax::Feature::Try->install; | |||||||||
| 30 | 2 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 31 | 1 | *{$caller . '::maybe'} = \&PerlX::Maybe::maybe; | |||||||||
| 32 | 1 | *{$caller . '::provided'} = \&PerlX::Maybe::provided; | |||||||||
| 33 | 1 | ▶ | *{$caller . '::in'} = Sub::Infix::infix { match::simple::match @_ }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | sub unimport | ||||||||||
| 37 | 0 | ▶ | { | ||||||||
|
Subroutine
unimport: not called CC=1 SCAR=6.9
| |||||||||||
| 38 | 0 | warnings->unimport; | |||||||||
| 39 | 0 | strict->unimport; | |||||||||
| 40 | 0 | feature->unimport; | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 2 | 1; | |||||||||
| 44 | |||||||||||
| 45 | # ABSTRACT: Perl core essentials in a single import | ||||||||||
| 46 | |||||||||||
| 47 | __END__ | ||||||||||