Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Perl CGI redirect

by hippo (Bishop)
on Apr 16, 2013 at 16:23 UTC ( [id://1028956]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl CGI redirect
in thread Perl CGI redirect

The order of operations in the script ought to be something like this:

  1. Create the CGI object
  2. Check the params
  3. If the params are good for the redirect, do that and exit
  4. Otherwise, print your header and the form and maybe some error message if the params were invalid

While you are there, you might also want to think about why you are using CGI twice, why you are using Getopt::Long and Fcntl and then apparently not referring to them, why you are not using strict and warnings, just how dangerous it is to shell out to a script located in /tmp and why you aren't running in taint mode.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found