develooper Front page | perl.perl5.porters | Postings from May 2010

And you thought Perl's concept of true/false was weird...

Thread Next
From:
Johan Vromans
Date:
May 25, 2010 03:26
Subject:
And you thought Perl's concept of true/false was weird...
Message ID:
m2zkzol1kt.fsf@phoenix.squirrel.nl
Often I hear people complaining about Perl's concept of true/false. In
particular things like "0" being false and "00" being true.

Well, think again...

In a private mail someone wrote me:

    ManuScript [the programming language used for Sibelius plugins] is
    a very limited language, with quirks that can easily trip up
    programmers. For example, 0, false, the empty string, and the
    null object are all generally equal to each other, except that
    0='' is true, while ''=0 is false.

Wow!

-- Johan

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About