Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to split my code up into libraries with
a .lib extension. Using require works fine, but gives me a warning that all of the references to the said libraries' subs
are not defined, although it still runs the subroutine. Is there any special syntax for calling these subs?
Also, when I change the extension to .pm and use "use"
with the directory where the libraries are added to @INC
like so:
This seems to work ok, except when the use function is stated, the @INC array seems to reset and forget that it has been appended. Any suggestions on either way of doing this?$INC[$#INC++] = "Directory";
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I get my script to see my modules?
by Shendal (Hermit) on Aug 24, 2000 at 23:57 UTC | |
Re: How do I get my script to see my modules?
by Anonymous Monk on Feb 01, 2001 at 22:59 UTC | |
Re: How do I get my script to see my modules?
by Anonymous Monk on Jun 16, 2003 at 06:43 UTC |
Back to
Seekers of Perl Wisdom