Mon Sep 30 08:53:32 2013zefram [...] fysh.org - Ticket created
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