Cool/useful short examples of Perl?

Philip Newton philip.newton at gmail.com
Wed Jun 8 18:19:45 BST 2011


On Wed, Jun 8, 2011 at 15:37, Matt Lawrence <matt.lawrence at virgin.net> wrote:
> Perl's canonical true and false are 1 and '' respectively

Is that so? How would one find that out?

Dump-ing 4==4 and 4==5 with Devel::Peek implies to me that true and
false are PVNVs with integer, floating-point, and string values filled
simultaneously, so I'm not sure how any of the three fields could be
considered "the" value of those, er, values(?).

Cheers,
Philip
-- 
Philip Newton <philip.newton at gmail.com>


More information about the london.pm mailing list