On 12/30/05, Mario Sanchez <[EMAIL PROTECTED]> wrote:
helloif you please,my perl program is;use XML::Simple;use Data::Dumper;#create object$xml = new XML::Simple;
$xml = new XML::Simple(
ForceArray => [ qw(server address) ],
KeyAttr => 'name'
);
#read XML file$data = "">#access
Mario Sanchez <> wrote:
: instead of using the DUMPER, how can i access ONE field of one
: element inside perl? for example, if i want to know what is the
: address for server 'gobi', how to i get to it??
print $data->{server}->{gobi}->{address};
# Or:
print $data->{server}{gobi}{address};