http://www.perlmonks.org?node_id=344443


in reply to Re: Just use an XSLT stylesheet
in thread Just use an XSLT stylesheet

No. TMTOWTDI shouldn't be abused to say "More than one way, as long as that way is in Perl". If XSLT could show sizeable benifits for XML manipulation over Perl + (insert CPAN module), then people's statements to suggest XSLT over Perl would be completely justified.

However, XSLT is often far more verbose than a similar solution in Perl would be (there's an excelent article on Kuro5hin.org comparing XML manipulation in XSLT, Perl, and Haskell). That's the reason why people should avoid blindly suggesting the use of XSLT over Perl, not because it's not Perl.

Being a good coder means knowing your tools and how best to apply them. Perl happens to be one of the most flexible tools you can find, but sometimes it isn't the one that should be used.

----
: () { :|:& };:

Note: All code is untested, unless otherwise stated