Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Basic programming question

by merlyn (Sage)
on Jan 27, 2005 at 13:01 UTC ( #425543=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($hour %= 12) ||= 12;
    
  2. or download this
    $hour = ($hour + 11) % 12 + 1;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-12-10 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?