XML, the Perl Way

Home XML::Twig Modules Talks Articles Tutorials Reports Tools PGC mirod Le Blog

XML::Twig News

28 Apr 2006

XML::Twig News: VMS Patch

Peter (Stig) Edwards sent me a patch to fix all the build problems on VMS.

I integrated the changes, which fell in a few categories:

  • VMS supports only 1 dot per file name, so no more t/test_3.22.t,
  • tools like cat, echo and even... perl are not necessarily available, so I had to replace them, either with the VMS version, or by finding the right version of perl and using it,
  • VMS quirks, like LWP::Simple not forking.

I don't have a VMS machine here, so of course I could not test the changes, but it looks like they should be OK.

The whole discussion is on RT.

BTW, on the subject of patches: I rarely apply them as is. Don't take it personally. First, patches are often on Twig.pm, which is generated from Twig_pm.slow, so I can't apply them directly. Then, surprisingly enough, I like to know what's in a patch before applying it, so I review them carefully, and what best way to review them than to rewrite them. Then I often find better ways, or at least ways that are more consistent with the existing module, to make the change, or more general. But I appreciate getting them anyway.

[XML::Twig News] [permalink]



21 Mar 2006

XML::Twig News: New name for an old method: unwrap

Chris Burbridge suggested that the erase method be aliased to unwrap, to spare others missing it and re-writing it, as he did.

This is now in the development version.

In case you had missed it, erase / unwrap removes an element, replacing it by all of its children, as if its start and end tags had been erased, or the element unwrapped and its content left in its place. Hence the names.

[XML::Twig News] [permalink]



Comments

Recent

Archives

2006