<div dir="ltr"><div>I should have known better!!!</div><div><br></div>After one additional convincing conversation about the limitations of XML::Simple, I had a look at how and where I was using it and decide to 'upgrade' two modules to use XML::LibXML. While it went smoothly for the first module, it uncovered a minor defect in the second where it was consistently missing an optional parameter. <div>Grant was right once again - not that I can recall Grant being wrong anyway.</div><div><br></div><div><br></div><div>If I may preempt the next call for topics, I would be delighted to hear about PDL. <br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 13, 2015 at 10:34 AM, Peter Davenport <span dir="ltr"><<a href="mailto:davenportnz@gmail.com" target="_blank">davenportnz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Grant & Mongers,<br>
It certainly was very helpful to have the 'reverse talk' of me asking questions and the rest offering advice on XML issues. I had not ben aware that Grant had a prior involvment with XML::Simple. Notwithstanding The advice to avoid this, I went home and added a 'ForceArray' parameter with appropriate element names, and my short script did what I needed it to do. When run over the data that I had, it produced the 80,000+ records that I was wanting. It is only a 'one-off' use, so I am unlikely to migrate this specific one to XML::LibXML, but future excursions into other XML will follow that path. Thanks again for all the productive advice.<span class="HOEnZb"><font color="#888888"><br>
<br>
Peter Davenport</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 12/08/2015 10:34 p.m., Grant McLean wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mongers<br>
<br>
Thanks to everyone who came along and contributed to the various debates<br>
and inquisitions last night - I thoroughly enjoyed the meeting.<br>
<br>
Notes for Peter:<br>
<br>
1. Don't use XML::Simple<br>
<br>
2. If you insist on ignoring '1', be sure to enable XML::Simple's<br>
    "strict mode" as described here:<br>
<br>
      <a href="http://www.perlmonks.org/index.pl?node_id=218480" rel="noreferrer" target="_blank">http://www.perlmonks.org/index.pl?node_id=218480</a><br>
<br>
    This would have alerted you to the need to define ForceArray.<br>
<br>
3. Using XML::LibXML would give you fewer surprises.  It is easily<br>
    installed on Ubuntu/Debian with:<br>
<br>
      apt-get install libxml-libxml-perl<br>
<br>
4. The XML::LibXML documentation is not great, but this article should<br>
    help you convert code from XML::Simple to XML::LibXML:<br>
<br>
      <a href="http://www.perlmonks.org/index.pl?node_id=490846" rel="noreferrer" target="_blank">http://www.perlmonks.org/index.pl?node_id=490846</a><br>
<br>
5. You might also want to look at an XPath tutorial, e.g.:<br>
<br>
      <a href="http://www.zvon.org/xxl/XPathTutorial/General/examples.html" rel="noreferrer" target="_blank">http://www.zvon.org/xxl/XPathTutorial/General/examples.html</a><br>
<br>
<br>
The slides from my Postgres history triggers talk are up on the web site<br>
(complete with bugs) here:<br>
<br>
     <a href="http://wellington.pm.org/archive" rel="noreferrer" target="_blank">http://wellington.pm.org/archive</a><br>
<br>
The final slide includes a link to resources.zip which includes all you<br>
need to set up the simple DB that I described, and try out the triggers.<br>
<br>
<br>
Thanks Richard for your interesting presentation (and also for<br>
requesting the other talk).  I think you're going to have to come up<br>
with a name for your project and feel sure the group can come up with<br>
suggestions.  Here's some to get the ball rolling:<br>
<br>
  * credcheck<br>
  * nbad (the "Nothing But Auth" daemon)<br>
  * bbad (Bare Bones Authentication Daemon)<br>
  * authify<br>
  * ics (Isolated Credentials Store)<br>
  * adwan (authentication daemon without a name)<br>
<br>
<br>
The next meeting will be on September the 8th - let me know if you'dlike<br>
to do a talk.<br>
<br>
Regards<br>
Grant<br>
<br>
<br>
<br>
_______________________________________________<br>
Wellington-pm mailing list<br>
<a href="mailto:Wellington-pm@pm.org" target="_blank">Wellington-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/wellington-pm" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/wellington-pm</a><br>
</blockquote>
<br>
_______________________________________________<br>
Wellington-pm mailing list<br>
<a href="mailto:Wellington-pm@pm.org" target="_blank">Wellington-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/wellington-pm" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/wellington-pm</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://s3-ap-southeast-2.amazonaws.com/regenpublic/NRG53199.png" width="420" height="101"><br></div></div></div></div></div></div></div></div></div></div>
</div>