Skip Menu |

This queue is for tickets about the P CPAN distribution.

Report information
The Basics
Id: 89060
Status: resolved
Priority: 0/
Queue: P

People
Owner: pause [...] tlinx.org
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: duff numeric use of %H
Date: Mon, 30 Sep 2013 13:53:16 +0100
To: bug-P [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
One of P's "MORE EXAMPLES": P "%H #items %s", 0+%H; # Show number of items in hash This is bad code which will generate a warning if warnings are enabled: % perl -we 'use P; %H=(one=>1, two=>2, u=>undef); P "%H #items %s", 0+%H;' Argument "3/8" isn't numeric in addition (+) at -e line 1. %H #items 3 -zefram
fixed in V1.1.0.