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

Re^2: What is true and false in Perl?

by ikegami (Pope)
on Sep 15, 2009 at 18:10 UTC ( #795442=note: print w/replies, xml ) Need Help??

in reply to Re: What is true and false in Perl?
in thread What is true and false in Perl?

"0" is not boolean, and neither is "",

Noone said they are. It was said they are false.

Providing such a 'feature' comes with a very significant readability and maintainability cost that is simply not justified.

That's odd. Perl, Python, PHP, C, C++, JavaScript, VB and the 5 or 6 CPU I know work that way. The only language I know that doesn't is Java.

Replies are listed 'Best First'.
Re^3: What is true and false in Perl?
by Anonymous Monk on Jan 31, 2012 at 17:33 UTC
    Also LISP.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://795442]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2017-08-21 01:20 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (317 votes). Check out past polls.