Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Won't jump to Sub!

by Masem (Monsignor)
on Apr 17, 2001 at 00:33 UTC ( [id://72934]=note: print w/replies, xml ) Need Help??


in reply to Won't jump to Sub!

Your code...
if ( exists $Subs{$q->param('do')}) { $Subs{$q->param('do')}->(); } else { $Subs{$q->param('do')}->(); }
...screams that something's wrong in the logic here. It makes sense for the IF part, but if the 'do' parameter points to a non-existence entry in your Subs hash, the THEN part is going to fail out of the script terribly. You probably want THEN to be $Subs{'FrontPage'}->();

This doesn't solve your problem, but this is a glaring error.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Log In?
Username:
Password:

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

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

    No recent polls found