yeti has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I am very new to Perl and am trying to run my first proper script, which makes use of PDF::FromHTML. When I do I get the following error:
Can't locate PDF/FromHTML.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library +/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Net +work/Library/Perl/5.12 /Library/Perl/Updates/5.12.3 /System/Library/P +erl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System +/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/ +Perl/Extras/5.12 .)
Now I have installed PDF::FromHTML using CPAN and can confirm that it was added to my perllocal.pod, as this extract shows.
=head2 Wed Aug 7 09:04:20 2013: C<Module> L<PDF::FromHTML|PDF::FromHT +ML> =over 4 =item * C<installed into: /opt/local/lib/perl5/site_perl/5.12.4> =item * C<LINKTYPE: dynamic> =item * C<VERSION: 0.31> =item * C<EXE_FILES: script/html2pdf.pl> =back
But it would appear that the paths are not being added to the @INC and I can't figure out why. I would appreciate it if anyone could give me advice on how to get around this problem.
Thanks Bevan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Paths not added to @INC
by kcott (Archbishop) on Aug 12, 2013 at 07:34 UTC | |
by yeti (Initiate) on Aug 12, 2013 at 07:51 UTC | |
by Athanasius (Archbishop) on Aug 12, 2013 at 08:29 UTC | |
by yeti (Initiate) on Aug 12, 2013 at 11:26 UTC | |
|
Re: Paths not added to @INC (two perls, which perl, head -n2 `which cpan` )
by Anonymous Monk on Aug 12, 2013 at 07:08 UTC |