Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Getting rid of an uninitialized warning

by ww (Archbishop)
on Jun 23, 2011 at 20:56 UTC ( [id://911161]=note: print w/replies, xml ) Need Help??


in reply to Getting rid of an uninitialized warning

What you've told us leaves me less than confident that I understand what the actual problem is. See I know what I mean. Why don't you?. But here are a few WAGs/WAIs:

  • Make the parameter required (since it appears the log tells you that some visitor missed a checkbox, input field or some such) in the html.
  • Consider using CGI::Validate or Params::Validate
  • Move your $c_enabling=''; above (eg, before) the code you've shown (and move the my to the same line and put a test of the parameter's existance ahead of line 1 along code to tell the user than the param must be supplied, at which point $c_enabling won't be uninitialized and the visitor will be cautioned against omitting a field.
Of course, if I've mis-diagnosed your problem, the above may be mere garbage....

Replies are listed 'Best First'.
Re^2: Getting rid of an uninitialized warning
by jonc (Beadle) on Jun 23, 2011 at 21:13 UTC

    Sorry, I will try and be more clear from now on. Thanks for letting me know.

Log In?
Username:
Password:

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

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

    No recent polls found