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

Re: parsing markup with Perl

  • From: Arjun Ray <arjun.ray@verizon.net>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Sat, 08 Feb 2014 16:08:52 -0500

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


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.