Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: variable set to 0 ? 0 : 1

by dws (Chancellor)
on Sep 06, 2002 at 05:12 UTC ( [id://195576]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      return $status == 0 ? 0 : 1;
  2. or download this
      return ($status == 0) ? 0 : 1;
  3. or download this
      if ( $status == 0 ) {
          return 0;
      } else {
          return 1;
    }
    
  4. or download this
      return 0 if $status == 0;
      return 1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-20 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found