in reply to Trapping a warning

Thank you all for your input, I don't think I've fully explained my question. I know about autovivification and testing for truth on a variable, but in this case I was looking for a solution to use Perl's built-in warnings and how I would test for that situation.

BlackJudas