I have a perl script which works on dev box, but not on prod box dev box uses perl V5.8.8 prod box uses perl V5.8.4 The scripts fails with below error on prod box:
Can't locate Email/Date/Format.pm in @INC (@INC contains: /usr/perl5/5 +.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl +/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_ +perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendo +r_perl/5.8.4 /usr/perl5/vendor_perl .) at /usr/perl5/site_perl/5.8.4/ +MIME/Lite.pm line 1100.
The line in the MIME::Lite perl module where it fails is:
1096 ### Datestamp if desired: 1097 my $ds_wanted = $params{Datestamp}; 1098 my $ds_defaulted = ( $is_top and !exists( $params{Datestam +p} ) ); 1099 if ( ( $ds_wanted or $ds_defaulted ) and !exists( $params{ +Date} ) ) { 1100 require Email::Date::Format; 1101 $self->add( "date", Email::Date::Format::email_date() +);
How can I check if perl module Email::Date::Format is installed ? Also is there a possibility that difference in perl versions might be causing this issue ?

In reply to Perl Script - Can't locate module error by puneet.keswani

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.