Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: variable set to 0 ? 0 : 1

by jdporter (Paladin)
on Nov 05, 2002 at 15:39 UTC ( [id://210481]=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
            @things = $obj->get_current_list_of_things()
                ? grep /$wanted/, @things
                : $obj->default_things;
    
        # o.k., it's a contrived example.  gimme a break.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found