sub foo { my @private_local_array = @_; #then lets return element 5 for some reason return $private_local_array[4]; }