"..I have a module PDF.pm.."
I guess. Try:
use lib q(/path/to/lib);
use PDF;
Put PDF.pm in /path/to/lib
See lib
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
| [reply] [d/l] [select] |
Hi
This returns "Can't locate CorneliOS/Lib/PDF/Create.pm in @INC".
The PDF.pm file looks like this:
package CorneliOS::Lib::PDF;
use strict;
use lib "$ENV{'DOCUMENT_ROOT'}/.__sys";
use CorneliOS::Lib::PDF::Create;
use CorneliOS::Lib::PDF::POD2PDF;
1;
__END__
| [reply] |
| [reply] |
sudo cpan -i PDF
Celebrate Intellectual Diversity
| [reply] [d/l] |
This returned
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Tue, 03 Jun 2014 17:53:02 GMT
CPAN: YAML loaded ok (v0.90)
Going to read /root/.cpan/build/
............................................................................DONE
Found 74 old builds, restored the state of 74
Warning: Cannot install PDF.pm, don't know what it is.
Try the command
i /PDF.pm/
to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.9711)
| [reply] |
Try ... cpan ANTRO/PDF-111.tgz
| [reply] |
Greetings, cxg040.
You're going to need to make sure it gets into your @INC. That's the equivalent of $PATH, or %PATH%, in your shell, or command prompt. Have a look at @INC for better/greater details. Where this, and other related things are concerned. :)
Best wishes.
--Chris
ˇλɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH
| [reply] |