Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Script required two modules: GD.pm and Tie::IxHash. My host have GD.pm, but have no Tie::IxHash. ISP host does not allow install perl modules, therefore I'have been compelled to add this Tie::IxHash module in cgi-bin directory. Since I have no admin right and have no access to a command line, I have created the directory:
/mnt/web_c/d31/s02/a000ras1/cgi-bin/Tie
and copy Tie there.
Then I modify my script:
#!/usr/bin/perl # ---------------------------------------------------------- # program: makehtml.pl # version: 0.06 m5 build 2000-02-15 # language: Perl # license: GPL (GNU General Public License) # ----------------------------------------------------------THIS PROGR +AM IS PUBLISHED UNDER THE TERMS OF THE GNU PUBLIC LICENSE (GPL). # ---------------------------------------------------------- use GD; use Tie::IxHash; use lib '/mnt/web_c/d31/s02/a000ras1/cgi-bin';
Is this modification correct? If no- please correct it.

Replies are listed 'Best First'.
Re: Adding the module
by dragonchild (Archbishop) on Dec 16, 2004 at 18:44 UTC
    Have you tried it? Does it work? If it doesn't, what error(s) do you see?

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      Not tried yet, not clear, is the order important here?
      use GD;<br> use Tie::IxHash;<br> use lib '/mnt/web_c/d31/s02/a000ras1/cgi-bin';
      or
      use GD;<br> use lib '/mnt/web_c/d31/s02/a000ras1/cgi-bin'; <br> use Tie::IxHash;
        Which comes first: Telling someone where to find something or telling them to go get that something?

        Being right, does not endow the right to be rude; politeness costs nothing.
        Being unknowing, is not the same as being stupid.
        Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
        Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Re: Adding the module
by Toxa (Novice) on Dec 17, 2004 at 10:57 UTC
    Yes, this modification is correct !!