Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Just another Perl shrine
 
PerlMonks  

Re: Param not working correctly

by zdog (Priest)
on Sep 16, 2004 at 18:46 UTC ( #391538=note: print w/ replies, xml ) Need Help??


in reply to Param not working correctly

First you're using $pass_bob and then $bob_pass. Make sure you're using strict to avoid that. It forces you to declare your variables, so in case you misspell them accidentally, it'll yell at you.

Update: Also, I just noticed: You need to make sure that you're importing the param() method from the CGI module. *Generally*, this is done as follows:

use CGI qw(:standard);

Though I suppose you already do that somehow since Perl doesn't complain about the param() call. You probably should rethink your design an not have so many use CGI statements either (one should suffice). Both param() and redirect() are methods of the CGI object ($cgi = new CGI) so they can be called:

my $cgi = new CGI; $cgi->param( $param_name ); $cgi->redirect( $url );

Zenon Zabinski | zdog | zdog@perlmonk.org


Comment on Re: Param not working correctly
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2014-04-24 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls