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

Re: Debug pukes here.

by myocom (Deacon)
on May 17, 2002 at 00:23 UTC ( #167153=note: print w/ replies, xml ) Need Help??


in reply to Uninitialised value in string error(was: Debug pukes here.)

This could be any number of things, but basically it means that the first part of your if condition is uninitialized. This could be because the $q object wasn't created, for example, or it could be that you have parentheses where you should have curly braces. Try this instead:

if ($q->param{'field'} eq "") { # Note that 'field' has curlies now &printform() } else { &results() }
While I'm at it, I'm betting that the & isn't really needed (and may have unwanted side effects) here. See A question of style for more information.
"One word of warning: if you meet a bunch of Perl programmers on the bus or something, don't look them in the eye. They've been known to try to convert the young into Perl monks." - Frank Willison


Comment on Re: Debug pukes here.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-07-07 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls