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:
$INC[$#INC++] = "Directory";
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?
Originally posted as a Categorized Question.