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

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

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

Help for this page

Select Code to Download

  1. or download this
    $outhash {$str} ||= 0;
    $outhash {$str} ++;
  2. or download this
           "undef" is always treated as numeric, and in particular is
           changed to 0 before incrementing (so that a post-increment
           of an undef value will return 0 rather than "undef").

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368656]
[tye]: Since you brought up /proc, oiskuu, I didn't see you respond to my suggestion of 'loginuid'. Does your /proc not have such?
[oiskuu]: Hm. that depends on kernel compiled with CONFIG_AUDITSYSCAL L

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-06-23 19:52 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.