Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Nothing is happening in my CGI code.

by hippo (Bishop)
on Jul 02, 2013 at 19:49 UTC ( [id://1042087]=note: print w/replies, xml ) Need Help??


in reply to Nothing is happening in my CGI code.

First off, your code doesn't compile:

$ perl -Tcw /tmp/nuts.pl Missing right curly or square bracket at /tmp/nuts.pl line 25, at end +of line syntax error at /tmp/nuts.pl line 25, at EOF /tmp/nuts.pl had compilation errors.

Once you've sorted that, you'll need to take another hard look at your open statement and realise that the second argument is a URL, so the open will almost certainly fail.

Then there's the fact that you are opening (or trying to open) a file for reading and then immediately write to it. That isn't going to work either.

You also have a use CGI line in there, but it isn't clear to me why you have done that when you are not apparently using any of its features.

Final tip: don't just guess why your script doesn't work - check the error log on the server.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1042087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found