Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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?
[pryrt]: discipulus, were you naughty, or stopped believing in the vote fairy? She visited my vote bank last night....

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-06-24 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (562 votes). Check out past polls.