Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Assigning to an ArrayRef accessor typeby Athanasius (Archbishop) |
on Sep 21, 2020 at 15:15 UTC ( [id://11122002]=note: print w/replies, xml ) | Need Help?? |
Hello tomred, and congratulations on your first post! MockObj::files is not an array, it’s an array reference. So instead of assigning to an array variable:
you should assign to a scalar:
which gives the desired test result:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|