Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 studying the Monastery: (6)
As of 2014-10-31 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (216 votes), past polls