Oh, it looks like some mistake I've done, and I can't understand what's wrong (look at the Re: Date Handling in Perl - it's similar).
I tried to use Conditional Operator to put the time (in seconds) to subtract in the $_ variable. It can be done the other way: my $subt = 0; $hour > 10 || $subt = 60*60*24; (in this case, you'll need to use $subt instead of $_)
In reply to Re^3: Date Handling in Perl
by aitap
in thread Date Handling in Perl
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |