Monks,

I know there are countless threads that discuss this. I know there are countless modules that do this. However, Monks, I still need your Perl wisdom.

Of the solutions I've found, all use various modules to accomplish finding the difference in days between two dates. Date::Cal and Time::Local, just to name a few. This brings me to problem one:

1) I am not able to install any module on the server in which this Perl script needs to run.

So, I searched futher on how to incorporate the module into my code. This is Perl, after all. There had to be a way. Of course, a thread with several solutions to this issue. This, however, brought me to my second problem:

2) The module has to be Perl 4.x compatible. Date::Calc, Time::Local, and others all require Perl 5.x or greater. In this case, Perl 4.x is all I have access to.

And now here I am. I'm not sure how to approach this and I'd like to avoid having to write my own solution as I'm sure it won't be nearly "complete" enough. Any suggestions on how to approach this?

In reply to Need Advice: Date difference revisted by emilford

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.