in reply to 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

dws, Thanks for reply. Have downloaded a folder CGI.pm-3.01 to my mac. Folder contains, among other things, a file CGI.pm as well as two more folders t & CGI. Do I create the mylib (and mylib/CGI) directories in my cgi-bin directory...or at "main level". And then do I just upload (say, via fetch) the file CGI.pm and the two folders? Thanks.
  • Comment on Re: Re: seeking web host that has a current version of CGI.pm

Replies are listed 'Best First'.
Re: Re: Re: seeking web host that has a current version of CGI.pm
by dws (Chancellor) on Jan 06, 2002 at 01:22 UTC
    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.

      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