Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: use of unitialized value

by ptkdb (Monk)
on Oct 20, 2003 at 19:04 UTC ( #300711=note: print w/replies, xml ) Need Help??


in reply to use of unitialized value

First suggestion(not having seen any more of your code), turn 'use strict' back on. Then painstakingly correct everything it points out. "Use of uninitialized value" is a -w warning, but typically not a fatal error(depending on your point of view of course).

You could use the 'ptkdb' debugger and set a breakpoint at your 'if' statement and set its condition do "!defined $quanity". The debugger will stop the program when that statement would generate that warning. That will allow you to see the 'offending member' in your hash. You can use the default perl debugger to do the same thing with the command: 'b <lineno> !defined $quantity'.

Check the code that populates that hash.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-12-04 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?