in reply to Uploading Perl modules without shell access

You are getting the error because FindBin makes use of $0, which is set by the evil outside world. But you don't trust the evil outside world when you run with -T, so you get the error.

However, if you put the modules in /modules, you don't need FindBin. Just do a use lib "/modules"; before using any of the other modules.

Abigail

  • Comment on Re: Uploading Perl modules without shell access

Replies are listed 'Best First'.
Re: Re: Uploading Perl modules without shell access
by Anonymous Monk on Jun 26, 2003 at 03:13 UTC

    Hi, I tried this earlier and it worked fine for HTML::Template but not for Text::CSV. Here's the import code:

    use lib 'modules'; use HTML::Template; use Text::CSV;

    Here's the error:

    Can't locate modules/auto/Text/CSV/autosplit.ix in @INC (@INC contains: modules .. (more perl directories)

    I don't understand the /auto subdirectory, or why it's unable to find Text::CSV (it is located in modules/Text/CSV). Thanks for your help :)

      From the error message, it seems like Text::CSV is more than just the file Text/CSV.pm. Did you install all parts?

      Abigail

        There is only one part to Text:CSV. The problem is it use of Autoload which is easily worked around.


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller