ProclusYes! Your simple one line of code is what I was trying to get at for "Can't locate DateTime/Locale/en_US.pm", "use" it, "use DateTime::Locale::en_US;"

As the Op gains more experience in writing Perl code destined for PerlApp compilation, the simplicity and efficiency of adding "use" statements to the source code rather than PerlApp option statements at the compilation phase to force inclusion of a module that the dependency checker doesn't think should be there will become apparent.

I strongly recommend writing source code that is easy for the dependency checker to deal with. When there are 2 sets of double colons, this almost a sure bet that a "use" statement will be needed and I just add that into the source code as I write it. Also, there are other ways of making a .exe file from Perl code rather than PerlApp, and those "other ways" will understand what to do when they see a "use" statement. My goal is that the source code "speaks for itself" and that is possible with Perl.


In reply to Re^2: PerlApp can't find bound module by Marshall
in thread PerlApp can't find bound module by petecm99

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.