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

Re: Re: comparing two values under 'perl -w'

by danger (Priest)
on Apr 02, 2002 at 21:19 UTC ( #156121=note: print w/ replies, xml ) Need Help??


in reply to Re: comparing two values under 'perl -w'
in thread comparing two values under 'perl -w'

Can we not just skip the secondary ternary here?

if(defined($x) && defined($y) ? $x==$y : !defined($x) && !defined($y)) + {


Comment on Re: Re: comparing two values under 'perl -w'
Download Code
Replies are listed 'Best First'.
Re: Re: Re: comparing two values under 'perl -w'
by demerphq (Chancellor) on Apr 03, 2002 at 08:48 UTC
    Doh.

    Good point. I certainly could have.

    :-)

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2015-07-28 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls