in reply to Re: XML::Simple
in thread How to access results of XML::Simple?
Instead of this:
my $xml = XMLin($data);
I'd recommend this:
my $genes = XMLin($data, keyattr => { gene => 'id' }, forcearray => [ 'gene' ], );
My reasoning:
The XML::Simple strict mode node expands on this theme.
Also, you could give XMLin() the DATA globref directly:
XMLin(\*DATA, ...);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: XML::Simple
by BrowserUk (Patriarch) on Dec 18, 2002 at 02:20 UTC |