Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Defensive Programming

by blakem (Monsignor)
on Jan 15, 2002 at 00:00 UTC ( [id://138673]=note: print w/replies, xml ) Need Help??


in reply to Re: Defensive Programming
in thread Defensive Programming

If that was really the whole construct (i.e. you've already generated $this and $that elsewhere) why not use:
return $somevar == $somevalue ? $this : $that;
Which is a lot easier for me to read w/o all that syntatic clutter around....

-Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found