Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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 CGI.pm'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 CGI.pm functions in your code, you shouldn't need to import anything. CGI::Application already gives you a CGI.pm 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found