in reply to Re: What is the correct definition of False and Null in Perl?
in thread What is the correct definition of False and Null in Perl?

Zero (in any format)

You're forgetting about "0 but true", "0E0", The best "true zero" is...

  • Comment on Re^2: What is the correct definition of False and Null in Perl?

Replies are listed 'Best First'.
Re^3: What is the correct definition of False and Null in Perl?
by ikegami (Patriarch) on Oct 09, 2011 at 05:50 UTC

    Not really. Many strings become zero when converted as a number, but until they've been converted, Perl doesn't consider them zero. This includes "abc" and those you listed.

    You'll never get those strings from stringifying zero, so there's no problem.