in reply to using another module

artist's answer is correct. To expand upon it, if you want to do this in a portable fashion, or the directory with your script and GD.pm might change, use the standard FindBin module:
use FindBin; use lib $FindBin::Bin;
The above code will add the directory where your script resides (well, technically the current working directory of your script when FindBin was used) to the library searchpath.

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: using another module
by cal (Beadle) on Oct 31, 2002 at 23:01 UTC
    Thanks, Does this only work if the CGI directory is named cgi-bin or could it be cge-whatever?
      It works wherever the script is located. Could even be in a directory named there_be_no_modules_here_so_go_away :).

      CU
      Robartes-

        After adding the two lies I keep getting : Premature end of script errors Any Ideas