in reply to array test question

Personally I'd test the assignment by !defined $raData and the emptyness by scalar(@$raData) == 0.

However, as far as I can see, !@$raData seems to test for emptyness as I'd expect with Perl 5.6.1, so I maybe I missed the point of your question?

Best, -gjb-