I did the same thing - that's what I meant by "manually satisfy the requirements". I gave up on Cwd, since it uses xs.

Let me try something...

Try this, it works for me. Rename the real Cwd.pm and upload a 'new' Cwd.pm, with the following:

package Cwd; require Exporter; use vars @EXPORT; @EXPORT = qw/getcwd/; sub import { my $pkg = shift; my $caller = caller; Exporter::export( $pkg, $caller, @EXPORT ); } sub getcwd { '.' } 1;

Here are the rest of the modules you'll need:

$ perl -MHTML::Template -e'print join "\n", keys %INC' | sort base.pm Carp.pm Exporter.pm File/Spec.pm File/Spec/Unix.pm HTML/Template.pm integer.pm strict.pm vars.pm warnings.pm warnings/register.pm

Once you've uploaded all of these, try running the code from HTML::Template's pod.

Good luck!


In reply to Re: Re: Re: Re: Re: Error using HTML::Template by jsprat
in thread Error using HTML::Template by Anneq

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.