in reply to Eval, assignments, and empty string/undef

This works as expected (IE does not die) for any value of $foo except undef or empty string

It would also fail for $foo = 0; ## 0.0, '0' etc.. Also, your or do{ die ... }; could simply be or die...; if you've nothing else to do before you die.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^2: Eval, assignments, and empty string/undef
by Anonymous Monk on Mar 26, 2010 at 16:44 UTC
    best if statement ever.