in reply to Can't use an undefined value as an ARRAY reference
You might also find 'use diagnostics;' useful - put this at the top of your program and it'll give you more explainey error messages.
In Section
Seekers of Perl Wisdom
in reply to Can't use an undefined value as an ARRAY reference