in reply to problem with variables
use XML::Simple; undef $/; $data = <DATA>; $ref = XMLin($data); print "Volume: " . $ref->{'volume'} . "\n"; print "Issue: " . $ref->{'issue'} . "\n"; print "Year: " . $ref->{'year'} . "\n"; __DATA__ <data> <volume>4</volume> <issue>12</issue> <year>2003</year> </data>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem with variables
by rvosa (Curate) on Sep 15, 2004 at 21:01 UTC |