XML::LibXML-objects in scalar context
Vladimir Melnik <[email protected]> Tue, 8 Jul 2014 16:33:06 +0300
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Organization | Uplink (http://uplink.ua/) |
| Message-ID | <[email protected]> |
Dear colleagues,
I've upgraded XML::LibXML from 1.x to 2.x and now all objects like ::Document, ::Element or ::Node return their textContent() when I mention them with no methods given - e.g. $log->trace("Information has been loaded as $dom");
I've got used to log object's class names with their unique identifiers, so that's why I need to mention the object in the scalar context, because it's pretty good to find other mentions of the same object in log-files.
Can I change its behavior with some option?
Thank you!
--
V.Melnik
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs