Can't use an undefined value as an ARRAY reference at tst.pl line 22 main::func() called at tst.pl line 18