[ABE.pm] hashes of hashes and more

Hans Dieter Pearcey hdp at pobox.com
Fri May 9 12:46:05 PDT 2008


On Fri, May 09, 2008 at 03:41:15PM -0400, Faber J. Fedor wrote:
> I thought adding node3 as a child of node1 would be
> 
> my $var = 'node1'
> push( @{ $self->{tree}->{$var}->{'children'} }, 'node3');
> 
> put I keep getting 
> 
> Can't use string ("node1") as a HASH ref yada yada yada
> 
> Suggestions?

There's nothing wrong with your example.  Show real code.

hdp.


More information about the ABE-pm mailing list