[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CGI Problem...



>     I'm having a bad time trying to run a cgi-script, this is the error
> message:
>
> "[Mon Nov 27 23:25:12 2000] [error] [client 200.182.182.227] malformed
> header from script. Bad header=Bareword found where operator :
> /usr/cgiwrap/cgiwrap".
>
>     Why am I receiving this error message? The script won't run for some
> reason, why?


Your script barfed because Perl expected to find an operator (such as != or
\ or " or etc.) where instead it found a bare word (one not enclosed by
operators). It is no coincidence that the problem with your script is also
exactly what the server told you. These error messages are there to help
you. Read them and heed them.

But the server can also tell you exactly where your syntax error occurred.
Run your script from the command line to see the full error message
including the line number. Then you can go to that line and fix it.

For future Perl questions, try a Perl forum, or better yet, a place like
www.askme.com where you can ask a Perl guru for help and get it without
flames. Be sure to include as much detail in your question as possible (the
whole script helps) instead of simply forwarding a general "I barfed"
message like the one above. Always run your scripts on your own box before
installing them on the server. Always run them from the command line before
asking for help, so that you will have the whole error message to work with.

Proper Perl programming is a persnicketty pastime.