http://www.perlmonks.org?node_id=33642


in reply to What are all the false values in Perl ((conditional, boolean, whitespace, unprintable characters)

You forgot undef, which is also false.

To check to see if there are characters in $script::debug that aren't printing you can always check the length of $string::debug.

Update: Just thought of this: are you putting a \n in the variable? Because "0\n" is not "0".

  • Comment on Re: What are all the false values in Perl ((conditional