rjbs / Perl-Critic-Lax

laxer versions of core Perl::Critic policies
3 stars 2 forks source link

Can't call method "isa" on an undefined value at ...ExceptForRequire.pm line 37 #1

Closed moregan closed 10 years ago

moregan commented 10 years ago

Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire 0.010 Perl::Critic 1.121 PPI 1.215

The policy blows up with "Can't call method "isa" on an undefined value at ...ExceptForRequire.pm line 37". The problem can be replicated with just:

eval qq(#line 1 "code"\n1;);
rjbs commented 10 years ago

Thanks! Fixed and fix released!