[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|