krachen has asked for the wisdom of the Perl Monks concerning the following question:
I then use an IF statement to choose:print "<td><a href=\"first.pl?item=select\">Select Info</a></td>"; print "<td><a href=\"first.pl?item=update\">Update Info</a></td>";
But when I click either option, it stops at the 'param' statement. I use this all the time on one server my own. the server at work is the same version of redhat and I think the install should be the same for both except for the Oracle stuff on the one at work. If I take the ref to param out, I can execute the rest of the script. Any ideas???if (param("item") eq "select") { &retrieve_data; } elsif (param("item") eq "update") { &update_data; } sub retrieve_data {
Edit by tye: Use CODE tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Use 'param' in if statement.
by bradcathey (Prior) on Dec 08, 2004 at 01:12 UTC | |
Re: Use 'param' in if statement.
by injunjoel (Priest) on Dec 07, 2004 at 23:03 UTC | |
Re: Use 'param' in if statement.
by eric256 (Parson) on Dec 07, 2004 at 22:31 UTC | |
Re: Use 'param' in if statement. (Excuse my hastiness)
by krachen (Novice) on Dec 09, 2004 at 19:58 UTC |