Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Basic programming question

by sleepingsquirrel (Hermit)
on Jan 27, 2005 at 16:32 UTC ( #425608=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $T = ($hour > 12) ? "PM" : "AM";
    
  2. or download this
    my $T = ($hour > 12) ? do {$hour-=12; "PM"} : "AM";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-09-25 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?