in reply to Perl array reference error

You've now got the immediate source of the error, but if you're after the root cause, maybe your should show the code with which you call that module (and quite possibly also the data).