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


In reply to Paths not added to @INC by yeti

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.