in reply to Module Help
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);
|
|---|