1st time poster (please take it easy on me)...
I outsourced some work on RentACoder.com a long time ago, and a programmer built me 3 perl scripts for various tasks. These scripts work flawlessly in XP (using activestate perl) but I have recently switched over to Ubuntu Linux for my full time computer use (bye, bye M$). But now I am having a few issues getting one of the scripts to run. I have very little experience with perl, but do have a rough general knowledge, and I have been able to correct a number of issues thanks to my good friend Google.com :-P, but I am stumped on this one.
The script just freezes in the beginning. Using the "-T" (tainting checks) attribute I get the following error message:
Can't locate Util.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at autocomp.pl line 9.
and here is line 9 of "autocomp.pl":
use Util;
But the "Util.pm" file is in the same directory as my script (autocomp.pl). Shouldn't Perl know to check in the directory where the script is located for the "Util.pm" file?
The funny thing is that there is another script that also calls Util.pm, and it works fine, so I am not sure if this is the real cause for the script not working or not?
TiA,
-BassKozz
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.