JTM-Boilerplate
view release on metacpan or search on metacpan
lib/JCM/Boilerplate.pm view on Meta::CPAN
use English;
use Import::Into;
use Smart::Comments;
use re;
sub import ( $self, $type = 'script' ) {
### assert: ($type =~ m/^(?:class|role|script)$/ms)
my $target = caller;
strict->import::into($target);
warnings->import::into($target);
autodie->import::into($target);
my ($ver) = "$PERL_VERSION" =~ m/^v(\d+\.\d+)\..*$/;
feature->import::into( $target, ":$ver" );
utf8->import::into($target); # Allow UTF-8 Source
if ( $type eq 'class' ) {
Moose->import::into($target);
lib/JTM/Boilerplate.pm view on Meta::CPAN
use English;
use Import::Into;
use Smart::Comments;
use re;
sub import ( $self, $type = 'script' ) {
### assert: ($type =~ m/^(?:class|role|script)$/ms)
my $target = caller;
strict->import::into($target);
warnings->import::into($target);
autodie->import::into($target);
my ($ver) = "$PERL_VERSION" =~ m/^v(\d+\.\d+)\..*$/;
feature->import::into( $target, ":$ver" );
utf8->import::into($target); # Allow UTF-8 Source
if ( $type eq 'class' ) {
Moose->import::into($target);
( run in 0.695 second using v1.01-cache-2.11-cpan-299005ec8e3 )