Thanks for the message. To start with I had tried with the shebang line followed by setting the path for library. But that retuned the error message that it cant find the GD module
Fri Jul 29 12:46:02 2005 error client 127.0.0.1 Premature end of script headers: /home/nagesh/apache/cgi-bin/simpleImage.cgi
Can't locate GD.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/i686-linux /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .) at /home/nagesh/apache/cgi-bin/simpleImage.cgi line 8.
BEGIN failed--compilation aborted at /home/nagesh/apache/cgi-bin/simpleImage.cgi line 8.
Fri Jul 29 13:16:05 2005 error client 127.0.0.1 Premature end of script headers: /home/nagesh/apache/cgi-bin/simpleImage.cgi
This was the reason I moved it to top line before shebang which dint give me the error message about the missing GD module.
Thanks
Nagesh