in reply to Managing data after XML::Simple...count elements

You have:
my @table = $perl->{Table}; my @newtable = $table[0]; my $count = @newtable;
But $perl->{Table} returns an array reference, not an array. Instead, do:
my @table = @{ $perl->{Table} }; my $count = @table;
Now $count should be accurate, and @table should hold hash references (I think).
_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re^2: Managing data after XML::Simple...count elements
by inblosam (Monk) on Jul 02, 2004 at 16:30 UTC
    Thanks!! That was what I needed!! I don't think I would have been able to figure that out on my own. :)