Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Use 'param' in if statement.

by bradcathey (Prior)
on Dec 08, 2004 at 01:12 UTC ( [id://413072]=note: print w/replies, xml ) Need Help??


in reply to Use 'param' in if statement.

To expand on injunjoel's reply, try:

use CGI; my $query = new CGI; if ($query->param("item") eq "select") { &retrieve_data; } elsif ($query->param("item") eq "update") { &update_data; } sub retrieve_data {

That should do it. It's one of those crazy bugs that we have all stared at for hours and simply not seen the obvious. Take heart, we've all been there.


—Brad
"Don't ever take a fence down until you know the reason it was put up." G. K. Chesterton

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found