Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Result:prompt> setenv PERL5LIB /home/mydir/perlbin #!/usr/local/bin/perl use FindBin; use lib "$FindBin::Bin"; use CPANModule; ...
CPANModule.pm resides in the /home/mydir/perlbin directory, so I don't see where the problem is - and it has permissions to read and execute. Is there a way to use this module locally (without installing it)? Or do I just have to cut and paste the module code into my own code? Thanks.Can't locate CPANModule.pm in @INC (@INC contains: /home/mydir/perlbin + /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl .) at myprog.pl line 5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Perl Modules
by reptile (Monk) on May 03, 2000 at 15:00 UTC | |
|
Re: Using Perl Modules
by athomason (Curate) on May 03, 2000 at 12:29 UTC | |
|
Re: Using Perl Modules
by btrott (Parson) on May 03, 2000 at 19:00 UTC |