in reply to Re^2: data extraction XML::Simple
in thread data extraction XML::Simple

The dump shows
VAR1 = { 'record' => [ { 'namepairs' => [ { 'brochure' => [ 'My Brochure' ], 'name' => [ 'My Name ' ], 'img' => [ 'My image' ] } ] } ] };

You don't account for the top level hash or any of the arrays.

print $data->{record}[0]{namepairs}[0]{name}[0];

Replies are listed 'Best First'.
Re^4: data extraction XML::Simple
by jonnyfolk (Vicar) on Mar 10, 2010 at 23:25 UTC
    Ok, I hadn't understood the difference between the two structures I had posted. It's much clearer to me now. Thanks very much for you help and time.