Re: Need some help with XMLin

[email protected] ("Jeff Peng")
Newsgroups perl.beginners
Message-ID <[email protected]>
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.

-- 
Jeff Peng - [email protected]
Professional Squid supports in China
http://www.ChinaSquid.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.