http://qs321.pair.com?node_id=300691


in reply to use of unitialized value

Try dumping the contents of $inventory{$itemcode} to see what's actually in it (using Data::Dumper:
print Dumper($inventory{$itemcode}); # or even: print Dumper(\%inventory);
That way, you can verify that the hash values contain what you think they contain.

CU
Robartes-