Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: differences between eq "" and !

by imp (Priest)
on Dec 14, 2006 at 04:08 UTC ( #589741=note: print w/replies, xml ) Need Help??

in reply to differences between eq "" and !

The value obtained by using an array in scalar context is the number of entries in that array - and an empty string is not a number.

Neither test in the code you provided will print anything, as it is equivalent to this:

if (0 eq "") { print "TEST1 passed\n"; } if (0) { print "TEST2 passed\n"; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://589741]
[LanX]: he ... FB is banning the wistleblower ... (shoot the messenger)
[marto]: #deletefacebook
[LanX]: well try to find my profile xD
[marto]: derp
[marto]: I've never had an account, and wouldn't visit the site
LanX having only a fake profile is hard if a flirt asks to befriend you
[erix]: "surveillance companies" have been rebranded as "social media"
[LanX]: I'm using whatapp though :-/
[LanX]: Snowden remins me of Evan Spiegel (... start of a new conspiracy theory)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2018-03-19 15:24 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.