ok, I installed HP 11.11 or 11.i onto one of our boxes, and loaded all our scripts back onto the box...the default version of perl with the load was 5.00502...and one of my scripts that had require timelocal.pl in it started freakin out...saying it wasnt found with the typical Can't locate timelocal.pl in @INC error message.....so to try and quickly fix it, I installed 5.6.1 using the depot I got from software porting and depot centre for HP-UX....which worked on all my other boxes....anyways, that didnt fix it...then I noticed it is looking in the wrong directory:
@INC contains:
/opt/perl5/lib/5.00502/PA-RISC1.1
/opt/perl5/lib/5.00502
/opt/perl5/lib/site_perl/5.005/PA-RISC1.1
/opt/perl5/lib/site_perl/5.005 .)
the timelocal.pl script is located in the /opt/perl5/lib/5.6.1 directory...and if I am Cd'd into
that directory, the program works!?!? is there a config file somewhere for perl that tells it where to look? kinda like setting the PATH?
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.