On 25 Set, 12:37, [EMAIL PROTECTED] (Matthew Whipple) wrote: > Some suggestions: > rewrite ':standard'; as qw/:standard/; > use warnings; > check the web server error log for more verbose debugging information > > It would be a lot easier to diagnose if you know what file or directory > isn't being found/accessed. > > Caronte wrote: > > Hi everybody. I'm learning Perl and CGI programming using MAMP as web- > > > server on OSX and I can't use the standard CGI module. Look at this > > (very) simple script: > > > #!/usr/local/bin/perl > > > use CGI ':standard'; > > > print header(); > > print start_html(); > > > for $i (param()) { > > print "<b>", $i, "</b>: ", param($i), "<br>\n"; > > } > > > print end_html(); > > > It should shows a blank page; on the contrary it outputs the following > > error: > > 500 Server Error > > [Mon Sep 24 21:00:38 2007] [error] [client ::1] (2)No such file or > > directory: exec of '/Applications/MAMP/cgi-bin/backatcha-cgi' failed > > [Mon Sep 24 21:00:38 2007] [error] [client ::1] Premature end of > > script headers: backatcha-cgi > > > It works from the command line, anyway. > > Scripts without cgi modules works instead. > > > Thanks for any help
False alarm. The problem was the intepreter directory; I fixed it replacing the first line with "#!/usr/bin/perl"...I'm a little ashamed :-). Ken, Matthew thank you for your answers. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/