On a side note, perhaps the following may be helpful:
my $date1 = UnixDate( ParseDate($raw_date1) || 'today', "%Y-%m-%d" );
This, instead of checking for an empty string, will either send a successful ParseDate or 'today' to UnixDate. I'd suggest a more comprehensive sanity check on the date data, but this will catch more than just an empty string.
In reply to Re^3: date::manip question
by Kenosis
in thread date::manip question
by e5z8652
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |