Mon Mar 22 05:02:53 2010: Request 55746 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: Module-ScanDeps
     Subject: hash-as-condition bug in Module::ScanDeps::DataFeed
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=55746 >


On Sat Mar 20 15:39:18 2010, [email protected] wrote:
> The conditional is actually not required at all.  Attached patch fixes.

I agree that this check is bogus.

> There's a bug in Module::ScanDeps::DataFeed where it uses a hash variable
> in a truth-value context.  This isn't a well-behaved operation, and

Why do you think this isn't "well-behaved"? Checking a %hash
for non-emptiness with 

if (%hash) { ... }

is perfectly OK (unless you're on an ancient version of Perl).


Reply via email to