Acme-Evil
view release on metacpan or search on metacpan
lib/evil.pm view on Meta::CPAN
our %tainted;
our %wants_strict;
sub import {
croak "Cannot load evil module when \"no evil ':strict'\" is in effect" if %wants_strict;
my $hinthash = (caller 0)[10] || {};
croak "Current module requested no evilness" if $hinthash->{$LAX};
$hinthash = (caller 3)[10] || {};
croak "Cannot load evil module when parent requested \"no evil ':lax'\"" if $hinthash->{$LAX};
my $level = 4;
my @caller;
while (@caller = caller $level) {
$hinthash = $caller[10] || {};
croak "Cannot load evil module when ancestor requested \"no evil ':intermediate'\""
if $hinthash->{$INTERMEDIATE};
$level++;
}
( run in 0.248 second using v1.01-cache-2.11-cpan-4d50c553e7e )