I was not sure where or how to declare the "foreach" statement for the contents of the XML,
Hence my queery.
Regards | [reply] |
my @vehicle_list = @{ $config->{Vehicle} };
foreach my $vehicle ( @vehicle_list ) {
print $vehicle->{AuctionID} . "\n";
}
| [reply] [d/l] [select] |
Thanks for the reply,
This is what i have found in another post on here,
It seems to work fine until i get a XML TAG with no data in it. ie,
<Mileage> </Mileage>
When i print this variable to either the screen or an output file i get a value such as,
HASH(0x17ce550)
Any ideas how to stop this??
| [reply] [d/l] |