I was about to rant hey that does not even work, it spits out a ton of warnings, how dare you post such untested code, etc etc.. Then I saw I had an old version of Date::Manip. After upgrading from 5.42 to 5.48 it works flawlessly.
# Date::Manip 5.42 ]$ /usr/bin/perl -w 679308.pl Argument "approx" isn't numeric in numeric gt (>) at /usr/lib/perl5/ve +ndor_perl/5.8.5/Date/Manip.pm line 1908, <DATA> line 24. Diff between 06/30/96 and 06/30/96 is 0.000000 Argument "approx" isn't numeric in numeric gt (>) at /usr/lib/perl5/ve +ndor_perl/5.8.5/Date/Manip.pm line 1908, <DATA> line 24. Diff between 06/30/96 and 08/07/97 is 0.000000 Argument "approx" isn't numeric in numeric gt (>) at /usr/lib/perl5/ve +ndor_perl/5.8.5/Date/Manip.pm line 1908, <DATA> line 24. Diff between 06/30/96 and 09/05/97 is 0.000000
# Date::Manip 5.48 $ /usr/bin/perl 679308.pl Diff between 06/30/96 and 06/30/96 is 0.000000 Diff between 06/30/96 and 08/07/97 is 13.240246 Diff between 06/30/96 and 09/05/97 is 14.193018
Owners of older versions of Date::Manip are hereby warned.
--
Andreas

In reply to Re^2: compare dates? by andreas1234567
in thread compare dates? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.