in reply to Re: Re: seeking web host that has a current version of CGI.pm
in thread seeking web host that has a current version of CGI.pm

Create mylib in cgi-bin and put CGI.pm there.
Create mylib/CGI and drop in the contents of the CGI folder.
Ignore t.

That should get you going.

Replies are listed 'Best First'.
Re: Re: Re: Re: seeking web host that has a current version of CGI.pm
by Anonymous Monk on Jan 06, 2002 at 02:51 UTC
    I think all files & directories are now in place with the correct permissions. In Perl script, I am putting the two lines use lib qw(mylib); use CGI ':standard',':html3',':netscape'; in place of former single line use CGI ':standard',':html3',':netscape'; Is that correct? Thanks again if you are still there. Tom
      dsw, My experience in experimenting with this is that it seems like the lib command puts mylib at the end of the list of directories consulted--so that the perl interpreter finds my web host's outdated version of CGI.pm (Version 2.42) first & so doesn't load the version that I've stored at mylib. (The Perl script I've executed to verify the version number still prints out "Version 2.42" so the Perl interpreter seems to be still grabbing the web host's version) Tom
        According to the lib documentation, the list of directories passed to lib are added to the start of the list - That is saying:

        use lib LIST;

        is equivalent to

        BEGIN { unshift(@INC, LIST) }

        And as such the directory specified will be searched first, rather than last as you suggest.

        I suggest you look at the list which you are passing to lib and also look at what values are contained in @INC immediately prior to your use CGI statement.

         

        Update

        Another interesting module which you may want to look at FindBin whose documentation you can find here which allows library directories to be based upon the script location.

         

        perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'