I take that back, they did not give you a fix. try this:
$ampm = ( $central_time_hour > 11 and $central_time_hour < 24 ) ? 'PM' + : 'AM';
I think that works properly, though it is is just a hack to cover flawed logic.
Fixing the flawed logic is left as an exercise for the reader.
Will perl for money
JJ Knitis
(901) 756-7693
gt8073a@industrialmusic.com
In reply to Re: Re: Morning or Night?
by gt8073a
in thread Morning or Night?
by n4mation
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |