Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Refactoring: dumb or witty use of ternary operator?

by Abigail-II (Bishop)
on Jun 22, 2004 at 10:10 UTC ( #368657=note: print w/ replies, xml ) Need Help??


in reply to Refactoring: dumb or witty use of ternary operator?

I think the only possible side effects here would be if %outhash or $outhash {$str} is tied, or if $outhash {$str} is an object with an overloaded ++ operator. Or if the program has overloaded integers (for instance, if use Math::BigInt ':constant' is in use).

Abigail


Comment on Re: Refactoring: dumb or witty use of ternary operator?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-06 03:45 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 (70 votes), past polls