- or download this
<?xml version="1.0" encoding="UTF-8" ?>
<GeocodeResponse>
<status>OK</status>
...
</geometry>
</result>
</GeocodeResponse>
- or download this
print "<br>Content-type: text/html \n\n";
my @lines = split /\n/, $content; #--content = above XML data
my $depth=0; my @myarray; my $currVar; #--Declare/Set
...
}
}
print "<br>STATUS = ".$myarray[GeocodeResponse][status]." <---THIS
+ should say OK";
- or download this
$myarray=[GeocodeResponse]=[
status="OK",
...
],
],
]
- or download this
# creates a single array, not an array of arrays
my @array_of_arrays = ( 1 .. 10, ( 11 .. 20, ( 21 .. 30 ) ) );
- or download this
@array_of_arrays = (
status="OK",
...
)
)
)