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

Hello, I am working with the CGI.pm file to create some forms and I want to use a style sheet. I read the perldoc on CGI.pm and so I know the start_html() has the -style=>{-src=>'/some/path/file.css'} option. When I use this option, my scripts will run and output the correct HTML in a shell but not when I run them from Netscape. When I do run the perl file in Netscape, the web browser seemly tries to execute the .css file that I linked as the -src file. The error logs says, "could not fork new process" if I have (chmod 755) for the .css file , and a "cannot execute" permission denied error if it has a (chmod 644). I am running a linux RedHat 7.1 system using IPlanet WS 4.1 Any ideas on this odd probelm? Thanks Aaron
  • Comment on CGI.pm working in shell not in netscape with the -style attr.

Replies are listed 'Best First'.
Re: CGI.pm working in shell not in netscape with the -style attr.
by lippy (Initiate) on Aug 07, 2001 at 00:34 UTC
    As a note: When I changed the extention from .css to .style it worked fine. I guess this may be a configuration issuse, but I am using the standard IPlanet install so I am not sure why it would make a difference. If any idea abound please feel free to share them.