![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^2: XML round-trip with comments and prologby choroba (Archbishop) |
on Jul 30, 2021 at 13:31 UTC ( #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
|
|