I have the same problem with a client of mine -- unfortunately, unless you
have your own server, your stuck with their setup.
I've gotten around the problem using the I switch in the shebang line:
#!/usr/bin/perl -I./lib
after than, I can include any module living in my lib directory the same
way I include those in the regular lib directory:
use strict;
use X;
use Web::X; # which is in a directory called Web in my lib directory
This has worked for me both with UNIX type servers, as well as with Windows
(ugh!) servers.
At 14:23 21.05.2001 -0400, you wrote:
>Hello, I am attempting to develop my first module. Because of
>permissions/security, etc.. I cannot store the module in the standard
>perl lib directories. So it is currently living in a subdir called lib in
>my home directory. I use a "use lib" directive to add this directory to
>@INC. this works , but when I try then to use another module that does
>reside in the standard lib directories, I get a "Can't locate object
>method "new" in module "X" at path-specified-in -use-lib-directive.
>
>When I print the elements of @INC all of the standard directories are
>printed as is the new one I've specified. I've also tried putting the
>directory into @INC using push, but I get the same error message.
>
>I am using Perl 5.00501 on SunOS 5.6.
>
>Thanks!
>
>
>Peter Cline
>Inet Developer
>New York Times Digital
>
Aaron Craig
Programming
iSoftitler.com