Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: ?: = Obfuscation?

by philcrow (Priest)
on Dec 01, 2006 at 16:48 UTC ( [id://587233]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if    ( $score >= 90 ) { $grade = 'A'; }
    elsif ( $score >= 80 ) { $grade = 'B'; }
    #...
    else                   { $grade = 'F'; }
    
  2. or download this
    $grade = ( $score >= 90 ) ? 'A'
           : ( $score >= 80 ) ? 'B'
           : ( $score >= 70 ) ? 'C'
           : ( $score >= 60 ) ? 'D'
           :                    'F';
    
  3. or download this
    if    ( $score >= 90 ) {
        $grade = 'A';
    ...
        $grade = 'B';
    }
    #...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found