You COULD try to install the module locally (in a specific directory) using a fresh perl install:

perl Makefile.PL LIB=/used/perl/modules/for/project make && make test && make install
The bundle the /used/perl/modules/for/project directory with you distribution and use lib for that directory. This might create unportable distributions for perl-only modules, and it certainly will create unportable distributions for modules build in XS, so watch out.

XML::Simple, by the way, uses XML::Parser, which uses the C expat library, which is not standard for most systems. You'll need to get the perl version, OS version, probably the C compiler, and all library versions correct if you want to copy the result of an install of XML::Simple to other machines. You might then even be able to use PAR to make the distribution. But probably not.

In short: installing != copying .pm files. That's why this whole Makefile.PL -> make -> make test -> make install thing is there in the first place.

For the XML modules, I think they are way too useful not to be installed anyway. Any decent hosting company should know that. Tell your clients their hosting company sucks. It won't help, but it might make you feel better :-)

-- #!/usr/bin/perl -w use strict;$;= ";Jtunsitr pa;ngo;t1h\$e;r. )p.e(r;ls ;h;a;c.k^e;rs ";$_=$;;do{$..=chop}while(chop);$_=$;;eval$.;

In reply to Re: Loading Local Modules by Joost
in thread Loading Local Modules by CodeJunkie

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.