in reply to Re: references to empty arrays
in thread references to empty arrays

It is also wise to learn to use the perl debugger.

Pseudodebug:

perl -d program DB<0> c M::N::suspicious_subroutine DB<0> n DB<0> n DB<0> n DB<0> use Data::Dumper DB<0> p Dumper($aref)