Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by kilinrax (Deacon)
on Sep 22, 2000 at 19:44 UTC ( #33644=note: print w/ replies, xml ) Need Help??


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

If $script::debug == "\0", then it will appear empty, but evaluate as true.
print "\Q$script::debug" would backslash all special characters, which would at least indicate their existence, though not their nature. TMTOWTDI, though there's probably a better way ;-)

Update:

my @unpack = unpack('C*', $script::debug); print "Unpack info: @unpack\n";
Should give you the ascii codes of each character in $script::debug, which will hopefully be useful.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-04 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls