Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 60179
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: wyant [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 1.108
  • 1.109
  • 1.111
Fixed in:
  • 1.110_001
  • 1.112_001
  • 1.112_002
  • 1.113



Subject: BuiltinFunctions::ProhibitStringyEval dies on eval "#...";
When fed something like eval "#..."; BuiltinFunctions::ProhibitStringyEval fails with the message Can't call method "isa" on an undefined value at .../Perl/Critic/Policy/BuiltinFunctions/ProhibitStringyEval.pm line 77. This actually turned up in the wild, specifically at line 41 of Date::Manip 5.54, which reads # Determine if we're doing taint checking $Date::Manip::NoTaint = eval { local $^W=0; eval("#" . substr($^X, 0, 0)); 1 }; I have made this critical because it's a fatal error, even though it is one _extremely_ unlikely to be encountered in practice. The fix is simple, and will be committed as soon as I can get it squared away.
Fix committed as SVN revision 3887. "Of course truth is stranger than fiction. Fiction has to make sense." -- attributed to all sorts of people, starting with Samuel Clemens.