Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Basic programming question

by j.goor (Acolyte)
on Jan 27, 2005 at 06:33 UTC ( [id://425481]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $T;
    if ($hour > 12) {
    ...
    } else {
       $T = 'AM';
    }
    
  2. or download this
    my $T = 'AM';
    if ($hour > 12) {
       $hour -= 12;
       $T = 'PM';
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 04:25 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found