Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Basic programming question

by merlyn (Sage)
on Jan 27, 2005 at 13:01 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found