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 japhy (Canon)
on Sep 22, 2000 at 19:46 UTC ( #33645=note: print w/ replies, xml ) Need Help??


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

I agree with swift -- print length($string) if you're not sure... and as for printing "unprintables":

sub literal { require 'dumpvar.pl'; &dumpValue; }
The dumpvar.pl library is, in fact, what the debugger uses when you tell it x $string.

$_="goto+F.print+chop;\n=yhpaj";F1:eval


Comment on Re: What are all the false values in Perl ((conditional
Download Code
Replies are listed 'Best First'.
RE: Re: What are all the false values in Perl ((conditional
by swiftone (Curate) on Sep 23, 2000 at 00:34 UTC
    One can always make use of Data::Dumper if you would prefer modules to libraries.
      Yes, by setting $Data::Dumper::Useqq to 1.

      $_="goto+F.print+chop;\n=yhpaj";F1:eval

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-07-29 04:23 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 (260 votes), past polls