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

Basic programming question

by j.goor (Acolyte)
on Jan 27, 2005 at 06:33 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2022-12-06 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?