I am on a kind of "booger-ed" version of Perl 5.10 because I didn't follow one of the "completely uninstall then re-install" directions along the upgrade path - my goof and I'm gonna have to pay for it!. But my path looks like this:

PATH=C:\Program Files\ActiveState Perl Dev Kit 7.3\bin;C:\Program File +s\ActiveState Perl Dev Kit 7.1\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Pe +rl\util\;C:\WINDOWS\system32;C:\WINDOWS;....

My Net.pm resides in C:/Perl/Lib/Win32.

I have to modify the @INC path to get this to work:

#!/usr/bin/perl -w use strict; use lib ("C:/Perl/lib/Win32API"); use Net; # this works # # without this lib() or modification to %path%, Net.pm is not found # # I guess that it could be that Net.pm is not intended to be used # directly, but that some other module uses it via some mechanism of # which I am unaware.
I am a bit flummoxed here as to how the code can run normally, but yet PerlApp cannot find the requisite modules to make the .exe. Please confirm that your code works when it is not in .exe form.

Adding more stuff to the @INC path seems to work, although I'm not sure why this is necessary.


In reply to Re^5: Troubles creating a .exe by Marshall
in thread Troubles creating a .exe by cbouwkamp

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.