Mother of Perl Magzazine 29
Andy King sent us a fluffy little
statement about
Mother of Perl that I've simplified: Perl
is good. We like it. This biweekly zine will help you know it
better. First article is on XML. This isn't the Perl Journal (which
has a permanent spot in my bathroom) but its not bad.
Update: 02/18 12:20 by CT : course it would be better if the registration worked.
XML Example that doesn't use XML modules (?!?) (Score:1)
1. TMTOWTDI.
2. Using XML::Parser would be overkill for such
a lightweight format.
3. I guess no one noticed that the headline files
were not well formed to begin with (no root element), hence, it would not work with an XML or SGML parser. I had to deal with the format that was available.
4. Audience - exposing readers to full blown XML concepts would blow most people away unless I started with an XML intro.
5. The article is for the Desparate Perl Hackers out there who need to solve difficult problems efficiently in an imperfect world. This often involves performing unnatural contortions like embedding non-HTML tags in HTML, and working with invalid XML. That's what Perl's good at.
6. The Spring edition of TPJ will satisfy your craving for a pure XML example using XML::Parser.
I will probably be addressing XML further in the future, among other things. Please feel free to send suggestions for a topic you'd like covered.
Jonathan Eisenzopf.
http://www.webreference.com/perl
Permanent Spot In Bathroom (Score:1)
Python forever (Score:1)
Personally I prefer PHP. (Score:1)
Have a look at: http://www.php.net
PHP vs Perl... perhaps missing the point a bit... what about PHP vs ASP?
Python forever (Score:1)
http://sunsite.auc.dk/www.python.org/doc/FAQ.ht
"Since there are no begin/end brackets there cannot be a disagreement between grouping perceived by the parser and the human reader. I remember long ago seeing a C fragment like this:
if (x = y)
x++;
y--;
z++;
and staring a long time at it wondering why y was being decremented even for x > y... (And I wasn't a C newbie then either.)"
Well the natural and simple solution is of course to not allow statement bodies that aren't enclosed by brackets (something I always do anyway).
"[some crap about saving lines of code with a forced coding style guide]"
I say - get a better editor.
Personally I prefer PHP. (Score:1)
XML Example that doesn't use XML modules (?!?) (Score:1)
Your credentials are of course unknown when you are just another Anonymous Coward.
Python forever (Score:1)
Python might be a cleaner OO scripting language, but for text processing I rather use Perl. I would use neither for application development (unless they are very small).
Well I will go back to my module writing - Perl of course
Python forever (Score:1)
Perl is good (Score:1)
"This biweekly zine will help you know better."
Oh, well. Need more caffeine, I guess.