Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by swiftone (Curate)
on Sep 22, 2000 at 19:36 UTC ( #33642=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://33642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2016-09-25 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (473 votes). Check out past polls.