in reply to Module Help

Regardless, your problem is in how you are calling test, and probably other methods in your module.

Unlike some other languages, when you're in an object method, you still need to explicitely have your $self used to call other methods. So if you re-write your code like this:
sub new { my $package = shift; my @fileArray = 'counter.pl'; if (@_) { my $fileArrayR = $_[0]; @fileArray = @$fileArrayR; } my $self = {}; bless $self, $package; $self->test(\@fileArray); $self->totalBandwith(\@fileArray); return $self; }
To call methods within the package in an OO sort of way, you do it as $self->Method(), because $self is a reference to the object instance you are working with, and $self gets (magically) unshifted onto the param list being passed in. So your method shifts off $self, and you have the rest of your param list as it was in the call.

It is 2 very different things to call $self->Method() and Method(), i dont want to get into all the details here, but this distinction is important to understanding OO in perl.

Now if you were indenting to call your package functions (methods) in a non-OO sense, you dont get the reference to the object, i.e. $self, so you cant shift it off. If you do, you're losing your first explicit param from the call.