Class-Easy
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Import.pm.PL view on Meta::CPAN
printf "our \$WARN = \"%s\";\n\n", join "", map "\\x$_", unpack "(H2)*", $WARN;
print "sub import {
# use warnings
\${^WARNING_BITS} = \$WARN;
# use strict, use utf8;
\$^H |= \$H;
# use feature
\$^H{feature_switch} = \$^H{feature_say} = \$^H{feature_state} = 1;
}
";
print "1;";
close STDOUT;
rename "$ARGV[0]~", $ARGV[0];
lib/Class/Easy.pm view on Meta::CPAN
my %params = @_;
# use warnings
${^WARNING_BITS} = $Class::Easy::Import::WARN;
# use strict, use utf8;
$^H |= $Class::Easy::Import::H;
# use feature
$^H{feature_switch} = $^H{feature_say} = $^H{feature_state} = 1;
# probably check for try_to_use is enough
return
if defined *{"$callpkg\::try_to_use"}{CODE}
and sub_fullname (*{"$callpkg\::try_to_use"}{CODE}) eq __PACKAGE__.'::__ANON__';
# export subs
*{"$callpkg\::$_"} = \&{"$mypkg\::$_"} foreach @EXPORT;
foreach my $p (keys %EXPORT_FOREIGN) {
*{"$callpkg\::$_"} = \&{"$p\::$_"} foreach @{$EXPORT_FOREIGN{$p}};
lib/Class/Easy/Base.pm view on Meta::CPAN
my %params = @_;
# use warnings
${^WARNING_BITS} ^= ${^WARNING_BITS} ^ $Class::Easy::Import::WARN;
# use strict, use utf8;
$^H |= $Class::Easy::Import::H;
# use feature
$^H{feature_switch} = $^H{feature_say} = $^H{feature_state} = 1;
# probably check for try_to_use is enough
return
if defined *{"$callpkg\::try_to_use"}{CODE}
and Class::Easy::sub_fullname (*{"$callpkg\::try_to_use"}{CODE}) eq 'Class::Easy::__ANON__';
# export subs
*{"$callpkg\::$_"} = \&{"Class::Easy::$_"} foreach @Class::Easy::EXPORT;
foreach my $p (keys %Class::Easy::EXPORT_FOREIGN) {
*{"$callpkg\::$_"} = \&{"$p\::$_"} foreach @{$Class::Easy::EXPORT_FOREIGN{$p}};
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.275 second using v1.00-cache-2.02-grep-82fe00e-cpan-2ea8abbae53 )