Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Avoiding the == blues

by aquarium (Curate)
on Dec 31, 2004 at 14:27 UTC ( [id://418540]=note: print w/replies, xml ) Need Help??


in reply to Re: Avoiding the == blues
in thread Avoiding the == blues

i don't see your point....what is your point, about not liking it? Seriously though, I think that too many programming teachers actually teach the "$foo == 0" way, which gets ingrained in a lot of us. if you think of the equality test as a weight scale, with each variable/constant being a weight, it should make it fit better for you. you can also have some fun with short circuit logic:
if ( 5 == $foo) print "tadaa";
can become
( $foo -5) && print "tadaa";
so you don't use == at all
the hardest line to type correctly is: stty erase ^H

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-16 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found