There's more than one way to do things | |
PerlMonks |
Re: Error : can't locate object method "createElement" via package XML::DOM::ELEMENTby NetWallah (Canon) |
on Sep 29, 2016 at 05:54 UTC ( [id://1172889]=note: print w/replies, xml ) | Need Help?? |
Try using $doc, instead of $root. createElement is a method of XML::DOM::Document, not of 'XML::DOM::Element', which is what $root is. ...it is unhealthy to remain near things that are in the process of blowing up. man page for WARP, by Larry Wall
In Section
Seekers of Perl Wisdom
|
|