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 Sat, February 8, 2014 2:20 pm, Michael Kay wrote:
>> They had unreadable code and it was driving them into the ground. My
>> takeaway was that Perl as it stood then required infeasibly much
>> commenting to be maintainable

That Perl, no doubt, but not all Perl.  If you were looking for a general
purpose scripting language in the early 90s, you would have picked Perl; a
few years later, and if you weren't already invested in Perl, you probably
would have picked Python; and now, you'd probably find some reason to use
JavaScript [1].

> Regular expressions seem to have two problems. The first is that they are

Which puts me in mind of the famous Jamie Zawinski line [2]:

  Jamie> Some people, when confronted with a problem, think "I know,
  Jamie> I'll use regular expressions."  Now they have two problems.

where the regular expression is the second problem.

But conflating regular expressions and Perl, as others have said, ignores
both the good things you can do with Perl and the bad things you can do
with regular expressions in any language.


Tony Graham                                         tgraham@mentea.net
Consultant                                       http://www.mentea.net
Chair, Print and Page Layout Community Group @ W3C    XML Guild member
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
Mentea       XML, XSL-FO and XSLT consulting, training and programming

[1] E.g., https://npmjs.org/package/xsl-transform: Node.js package for a
command-line XSLT processor that requires a second node.js package that
requires libxslt, which, once installed, gives you a command-line XSLT
processor anyway.

[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