Full
view release on metacpan or search on metacpan
lib/Full/Pragmata.pm view on Meta::CPAN
sub import ($called_on, $version_tag, %args) {
die "invalid version, expecting something like use @{[caller]} qw(:v1);"
unless my $version = $version_tag =~ /^:v([0-9]+)/;
my $pkg = $args{target} // caller(0);
my $class = __PACKAGE__;
# Apply core syntax and rules
strict->import;
warnings->import;
utf8->import;
# We want mostly the 5.36 featureset, but since that includes `say` and `switch`
# we need to customise the list somewhat
feature->import(qw(
bitwise
current_sub
evalbytes
fc
( run in 0.478 second using v1.01-cache-2.11-cpan-299005ec8e3 )