Re: Need some help with XMLin

2008-05-29 Thread Jeff Peng
On Thu, May 29, 2008 at 12:02 AM, Vasant Kumar <[EMAIL PROTECTED]> wrote: > > $VAR1 = { B => { C => [ {1}, {2}. {3} ]} > > Now accessing B is no problem, but I want to access the values in C.. Hello, $VAR1->{B}->{C}->[0]; will get the first element of the anonymous array whose KEY is C. -- Jef

Need some help with XMLin

2008-05-29 Thread Vasant Kumar
Hi, I'm using PERL for the first time, and I need to parse an XML Document. Essentially we have a file that's structures like this now when I do something like $data = XMLin($XML, forcearray => ["C"]); It has something similar to $VAR1 = { B => { C => [ {1}, {2}. {3} ]} Now accessin