in reply to Can't use an undefined value as a HASH reference
Print out your data to see if it is really what you think it is. Part of the data structure hasn't been populated.
use Data::Dumper; ... print Dumper $tree->{children}[0]; # if the above produced more than "$VAR1 = {};" or "$VAR1 = undef;", p +ost # those results back here. If it didn't, perform the following # and post those results print Dumper $tree; ... @{$tree->{children}}[0]->{label} =~ s/^\*//;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can't use an undefined value as a HASH reference
by Anonymous Monk on Aug 25, 2015 at 15:51 UTC | |
by stevieb (Canon) on Aug 25, 2015 at 16:08 UTC | |
by Anonymous Monk on Aug 25, 2015 at 16:32 UTC | |
by Anonymous Monk on Aug 25, 2015 at 16:15 UTC |