Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: XML round-trip with comments and prologby choroba (Cardinal) |
on Jul 30, 2021 at 13:31 UTC ( [id://11135527]=note: print w/replies, xml ) | Need Help?? |
Note that non-ancient XML::LibXML supports the hash syntax for attributes, so you can replace your setAttribute calls with
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|