in reply to Managing data after XML::Simple...count elements
But $perl->{Table} returns an array reference, not an array. Instead, do:my @table = $perl->{Table}; my @newtable = $table[0]; my $count = @newtable;
Now $count should be accurate, and @table should hold hash references (I think).my @table = @{ $perl->{Table} }; my $count = @table;
|
|---|
| 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 |