Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: return value of "if" (documentation?)

by pemungkah (Priest)
on Jan 09, 2014 at 01:18 UTC ( #1069892=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "$_ is ", 
            $_ == 0 ? 'zero' 
          : $_ >  0 ? 'pos'
          :           'neg', 
          "\n" for -1..1;
    
  2. or download this
    print "$_ is ", 
            $_ == 0  ? 'zero'
    ...
          : $_ >  0  ? 'pos'
          :            'neg', 
          "\n" for -2..2;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-06-06 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (26 votes). Check out past polls.

    Notices?