Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 examining the Monastery: (4)
As of 2022-12-06 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?