[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: parsing markup with Perl

  • From: "Tony Graham" <tgraham@mentea.net>
  • To: "xml-dev@lists.xml.org OASIS" <xml-dev@lists.xml.org>
  • Date: Sat, 8 Feb 2014 16:47:11 -0000 (GMT)

Re:  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.

Regards,


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.
[2]
https://groups.google.com/forum/#!msg/comp.emacs.xemacs/CyHb8HW-hKs/n1WCMEw5iCkJ



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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.