in reply to uninitialised value in hash reference

As I read this sub, the first thing you do is call the same sub recursively, with exactly the same argurmen list, unless the last element's equal to one.

I assume you meant to pull one element off the front or back of the @_ parameter array and work recursively on the remainder, but the pulling off part got forgotten. Filling up the stack can lead to strange errors, so you should fix that first.

  • Comment on Re: uninitialised value in hash reference

Replies are listed 'Best First'.
Re^2: uninitialised value in hash reference
by mhacker (Sexton) on Sep 25, 2006 at 07:39 UTC
    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.