Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: CGI::Application is ignoring me

by cees (Curate)
on Jul 21, 2005 at 13:34 UTC ( [id://476820]=note: print w/replies, xml ) Need Help??

in reply to CGI::Application is ignoring me

You have your answer already, but I'd like to point something else out that may bite you later on. You should really consider removing the use CGI qw/:standard/; line from your code. That imports a whole slew of functions into your namespace, including one called 'param'. CGI::Application already has a 'param' method, and you are replacing it with's param method. If you start depending on CGI::Application's param method in the future, bad things will start happening, cause it will invoke the wrong function when you call $self->param.

Unless you actually want to use the functions in your code, you shouldn't need to import anything. CGI::Application already gives you a query object to get your parameters. If you really want to use the html helper functions, think of fully qualifying them instead (CGI::h1, CGI::popup_menu, etc...). Or if you really want those functions imported, try to just import the functions that you need (use CGI qw/:html/)

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-05-27 21:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found