in reply to Compare Dates

if ($db_date <= $bdt) { # process }
"<=" is for numeric comparison, you want the 'le' operator for string comparison:
if ($db_date le $bdt) { # process }

Replies are listed 'Best First'.
Re^2: Compare Dates
by trippledubs (Deacon) on Apr 09, 2015 at 23:00 UTC

      If the dates are in some form of numeric 'year month day hour minute second', then check all fields are 0 padded, and a gt/lt/eq compare is perfectly valid and simple to grok what's going on. Its only when you get to the insanity of YYYY DD MM formats, that things go pear shaped...

      http://www.w3.org/TR/NOTE-datetime

      Cheers,
      R.

      Pereant, qui ante nos nostra dixerunt!
      The OP doesn't use Time::Piece.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        and the OP also doesn't compare dates successfully. I believe there is a high correlation between these two facts. I just meant to point out that, while comparing dates as strings will get rid of the warnings, it is probably not desirable.