OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] parsing markup with Perl

On Fri, 07 Feb 2014 12:42:17 -0500, "Simon St.Laurent"
<simonstl@simonstl.com> wrote:

| More fun for the crowd here.

Ah yes, the usual and predictable Perl Hatefest.  (Disclaimer: I wrote
my first Perl program in 1992, the latest one a week ago, and I apply
inliners daily.)

No doubt there is bad, if not very bad, Perl code out there, in great
abundance. Perl is *NIX-y that way, being not really interested in
protecting the less-than-proficient user from stupidity.  But if you
know what you're doing, Perl is an extraordinarily versatile tool.  

That said, it is certainly poor - no, make that egregious - Perl
practice to use regexes to parse markup.  As the article linked to
makes clear, that's a solved problem already - there is no excuse not
to use modules.

In fact, that applies to practically any language being used today to
wrestle with pointy-bracketed text, with the possible exception of
PHP.  Which, as has also been noted in this thread, may be the real
source of the weeping, wailing and gnashing of teeth: that regexes are
*still* being used for one-off markup parsing tasks.
But why blame Perl, other than it's the language eveyone loves to
hate?  (Actually, I thought that would be C++.)

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS