in reply to Re^2: Date Handling in Perl
in thread Date Handling in Perl
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 $_)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Date Handling in Perl
by Anonymous Monk on Jul 11, 2012 at 16:24 UTC | |
by aitap (Curate) on Jul 11, 2012 at 17:11 UTC |