in reply to Specifying filename

In addition, you could also use something like XML::Simple to build your XML file, it would be easier.

Replies are listed 'Best First'.
Re^2: Specifying filename
by psini (Deacon) on Jun 12, 2008 at 13:17 UTC

    ... and it takes care of escaping reserved chars.

    But, pleeease, try XML::Writer instead of XML::Simple.

    XML::Simple is so "simple" that in the last month I answered to no less than 4 posts about it, and the issue was always about the incorrect use of the not-so-simple-and-not-at-all-obvious options of that module.

    Really, I'ld have nothing against XML::Simple if only it had a different name :) Something in the line of XML::Config wold be nice, for it is (explicitly) optimized for managing XML config files, not generic XML.

    Careful with that hash Eugene.

      Alternatives to XML::Writer are XML::Generator and my own XML::API module.