Empty Hash Values

Adrian Lai perl at loathe.me.uk
Sun Apr 12 19:33:38 BST 2009


2009/4/12 Chisel Wright <chisel at herlpacker.co.uk>:
> On Sun, Apr 12, 2009 at 06:54:55PM +0100, Nigel Peck wrote:
>> The only way round this I've found is to concatenate an empty string:
>
> I tend to use:
>
>   element_2 => ($var || undef),

What if $var is 0, or the empty string?

In any case, I can't seem to reproduce Nigel's problem as it's written.
Is $var really an empty list?

Adrian.



More information about the london.pm mailing list