You are accessing the first argument to test using shift, but then you access a second argument via $_[0].
Your calling code only passes a single reference to an array, which is a single scalar, therefore the $_[0] has nothing to access. Try:
Which then calls the sub as an object method, which automatically provides the $self arg.$self->test (\@fileArray);
In reply to Re: Module Help
by pbeckingham
in thread Module Help
by Mercio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |