in reply to Re^2: perl xml format question
in thread perl xml format question
Are you using an oldish version of XML::LibXML perhaps?
The ability to handle an element's attributes like a hash was only added in 1.91 IIRC.
You can use setAttribute in older versions.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: perl xml format question
by Anonymous Monk on Jan 29, 2013 at 16:51 UTC |
In Section
Seekers of Perl Wisdom