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

Re: use of unitialized value

by Not_a_Number (Prior)
on Oct 20, 2003 at 19:14 UTC ( #300717=note: print w/replies, xml ) Need Help??


in reply to use of unitialized value

By all means, use the above solutions. But as a general rule, it is easy to add print statements to your code when you have a problem:

foreach my $itemcode (keys %inventory) { my $quantity = $inventory{$itemcode}[2]; print "<$quantity>\n"; # to replace if block }

dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-11-28 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?