winja
view release on metacpan or search on metacpan
lib/winja.pm view on Meta::CPAN
no strict 'refs';
no warnings 'once';
@keys = grep { /\A CORE::GLOBAL::/x || *{$_}{CODE} } @keys;
return @keys;
};
my $load = sub {
my ($key) = @_;
$init->($key) if !$MGR->{$key};
die "Undefined flag of '$key'" if !exists $bitmask{$key};
return if ( $^H{ __PACKAGE__ . '' } ||= 0 ) & $bitmask{$key};
$^H{ __PACKAGE__ . '' } |= $bitmask{$key};
no strict 'refs';
no warnings 'redefine';
no warnings 'prototype';
my $coderef = *{$key}{CODE};
if ( !$coderef || $MGR->{$key}->{self} ne $coderef ) {
$MGR->{$key}->{saved} = $coderef
if !$MGR->{$key}->{saved}
|| $coderef && $$MGR{$key}{saved} ne $coderef;
$delete_sub_from->($key);
( run in 0.401 second using v1.01-cache-2.11-cpan-49f99fa48dc )