in reply to Tomcat context.xml parsing using XML::SImple
For any XML work where any of the following is true, XML::Simple is not your friend:
- The order of elements is important.
- The distinction between an element and an attribute is important.
- You want to preserve comments.
- You want to preserve whitespace.
Use something like XML::LibXML instead.
TL;DR: No.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom