I have created my own module and placed it in /home/kcella/lib but cannot get perl to find it. The path has been added to @INC, spellig is correct, the use statement is present and permissions are 755. What else could I be missing?
Output from execution:
Can't locate Config/CronJob.pm in @INC (@INC contains: C:/cygwin/home/
+kcella/bin/../lib C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\
+c:/Perl/site/lib c:/Perl/lib .) at C:\cygwin\home\kcella\bin\cronjobm
+an.pl line 16.
BEGIN failed--compilation aborted at C:\cygwin\home\kcella\bin\cronjob
+man.pl line 16.
Output from ls on my module:
$ ls -l /home/kcella/lib/Config/CronJob/CronJob.pm
-rwxr-xr-x 1 kcella None 1259 Jan 7 21:26 /home/kcella/lib/Config/Cro
+nJob/CronJob.pm
Yes, I know I am using Activestate perl on cygwin. There is only one copy of the interpreter and I have already dealt with the issues for path conversion.
Another odd thing, if I copy the module to c:/Perl/site/lib it works without any errors.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.