Was rather proud of myself. Wrote a script that takes a badly formated xml file and coverts it into something that XML::Simple can handle. But, now that XML::Simple successfully reads in the XML file and puts into a hash. I can't figure out how to access the hash. This part always confuses me. I'd appreciate not only help, but perhaps a good document written at kindergarten level that explains this stuff.
After running, Dumper shows the hash was loaded like so:
$VAR1 = {
'ETPT' => {
'SERVER' => [
{
'RESPONSE' => '07:14:59,60,1236,
+31789,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61
,61,61,61,61,61,61,61,61,61,61,186,61,119,61,61,119,119,61,92,61,92,14
+754,1397,1475,1625,365,1085,1660,1249,1883,928,672,366002,1821
,3591,3880,4505,4580,2877,1104,3165,4650,2420,1842,2548,2069,1382,3947
+,3913,4478,3096,2356,2857,3877,3398,3663,4134,1850,3661,5713,2
896,2173,4057,3161,1446,1497,3518,6443,4410,5154,11025,11907,8277,7890
+,5209,7109,5408,6133,5204,7057,6601,4907,7465,6403,6655,111717
,5640,6052,6000. . . .
'CMD' => 'cq/quoteserver/qsclien
+ts/client-X.X.X.13.1057|showgraphwbu@',
'CLIENT' => 'X.X.X.13.1057',
'IP' => 'X.X.X.41'
},
{
'RESPONSE' => '07:14:59,60,618,3
+2,32,922,32,32,31,32,31,32,32,31,32,32,31,32,31,32,32,31,32,31
,32,32,31,32,32,31,32,31,32,32,31,32,47,4047,32,31,32,32,1203,32,31,32
+,32,62,2063,31,32,469,31,32,32,31,32,31,32,32,31,32,31,32,32,3
1,32,32,31,63,1000,47,32,31,32,31,32,32,31,32,32,47,32,47,1906,32,31.
+. .
etc etc etc
I want to be able to pull out all of the RESPONSE's for each IP. (there are multiple RESPONSE's per IP).
Help me please...