On 5 October 2012 18:09, Adrian Howard <[email protected]> wrote:

> On 5 October 2012 10:35, Victor Churchill <[email protected]>
> wrote:
> [snip]
> > ( for comparison Perl can be a minefield, where any of the null string
> '',
> > the integer 0, and an undefined value undef are all false.)
>
> It hardly ever causes problems in Perl land though since all the
> 'false' values correspond to 'empty' in one way or another (empty
> string, zero number, zero length array, empty hash, etc.) Once you're
> used to the convention it reads quite naturally IMHO.
>

It has bitten me a couple of times where I specifically wanted to take
defensive action on undef, and saying C< unless $foo > fell over when $foo
was defined but happened to be zero - a learning experience :)


>
> Adrian
> --
> http://quietstars.com     [email protected]     twitter.com/adrianh
> t. +44 (0)7752 419080     skype adrianjohnhoward     del.icio.us/adrianh
>
> --
> Next meeting:  ???, ???day, 2012-11-?? 20:00
> Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
> New thread on mailing list:  mailto:[email protected]
> How to Report Bugs Effectively:  http://goo.gl/4Xue
>



-- 
best regards,

Victor Churchill,
Bournemouth
-- 
Next meeting:  ???, ???day, 2012-11-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to