Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Yet Another Unitialized Value Question

by doorslam (Beadle)
on Sep 22, 2003 at 18:49 UTC ( #293231=note: print w/replies, xml ) Need Help??


in reply to Re: Yet Another Unitialized Value Question
in thread Yet Another Unitialized Value Question

The column is a boolean flag with a not null constraint. I assume if fetchrow returns no rows, lock is undefined, but then I don't reference it again.

If there is a row, then lock must be 0 or 1.
  • Comment on Re: Re: Yet Another Unitialized Value Question

Replies are listed 'Best First'.
Re: Re: Re: Yet Another Unitialized Value Question
by sandfly (Beadle) on Sep 22, 2003 at 20:11 UTC
    Are you sure you have the right line?
    undef $lock; if ($lock) ...
    does not cause a warning for me (perl 5.8.0). It's not doing a numerical == comparison.

    Have you tried using the debugger?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-05-17 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?