Anyone got any ideas what this error message is all about?
The surrounding area of code, is;
if (defined $xmld->{Address}) {
$link_details->{PostalCode} = $xmld->{Address}->{PostalCode};
if ($xmld->{Address}->{StateCode}) {
$link_details->{State} = $_states_hash->{$xmld->{Address}->{StateCode}};
}
if (defined $xmld->{Address}->{CountryCode}) {
$link_details->{Country} = $_countries_hash->{$xmld->{Address}->{CountryCode}};
}
$link_details->{City} = $xmld->{Address}->{City};
$link_details->{Line1} = $xmld->{Address}->{Line1};
#print "Directions: " . $xmld->{Directions} . "\n"; next;
if (defined $xmld->{Directions}) {
$link_details->{Directions} = $xmld->{Directions}->{Text};
}
}
The part in red is line 434.
TIA for any ideas/suggestions. I've been struggling with this for over a day now
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote:
[Sat Nov 6 03:48:46 2004] hotelclub_xml.cgi: Bad index while coercing array into hash at xml.cgi line 434.The surrounding area of code, is;
Code:
# Address... if (defined $xmld->{Address}) {
$link_details->{PostalCode} = $xmld->{Address}->{PostalCode};
if ($xmld->{Address}->{StateCode}) {
$link_details->{State} = $_states_hash->{$xmld->{Address}->{StateCode}};
}
if (defined $xmld->{Address}->{CountryCode}) {
$link_details->{Country} = $_countries_hash->{$xmld->{Address}->{CountryCode}};
}
$link_details->{City} = $xmld->{Address}->{City};
$link_details->{Line1} = $xmld->{Address}->{Line1};
#print "Directions: " . $xmld->{Directions} . "\n"; next;
if (defined $xmld->{Directions}) {
$link_details->{Directions} = $xmld->{Directions}->{Text};
}
}
The part in red is line 434.
TIA for any ideas/suggestions. I've been struggling with this for over a day now

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!