in reply to Re: uninitialised value in hash reference
in thread uninitialised value in hash reference

There's a subroutine call in there, that presumably does the @_ manipulations necessary:
unless ($_[$#_] eq 1){ handle_direntries(handle_direntries_params(@_)); }
But since the poster didn't give us the code for handle_direntries_params(), we can only assume that it at least doesn't return @_ unchanged.