Maze has asked for the wisdom of the Perl Monks concerning the following question:
where it simply seems to reiterate constantly complaining about an uninitialised value at the last line..sub handle_direntries{ unless ($_[$#_] eq 1){ handle_direntries(handle_direntries_params(@_)); } else{ my $count = 0; my $treeref = \%::treehash; # reference to a hash while ($count != $#::path){ $treeref = \$treeref->{$::path[$count]}; $count++; next if $count == $#::path; unless (defined($treeref->{$::path[$count]})) { $treeref->{$::path[$count]} = {"$::DirLabel" => $::pat +h[$count]} } } $count = 0; while ($count != $#::direntries){ $treeref -> {$::path[$count]}{$::direntry[$count]} = "$::FileL +abel" unless $treeref -> {$::path[$count]}{$::direntry[$count]} = "$: +:DirLabel"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: uninitialised value in hash reference
by liverpole (Monsignor) on Sep 23, 2006 at 17:38 UTC | |
|
Re: uninitialised value in hash reference
by rodion (Chaplain) on Sep 23, 2006 at 17:51 UTC | |
by mhacker (Sexton) on Sep 25, 2006 at 07:39 UTC | |
|
Re: uninitialised value in hash reference
by Maze (Sexton) on Sep 27, 2006 at 21:04 UTC |