Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
There's a relatively famous quote, attributed to Napoleon, that reads "If you say you're going to take Vienna, take Vienna." There's a lesser-known quote, attributed to Ovid (me, not the poet) that reads "If you say you're going to use XML, use XML." Not this bastard hybrid of broken CSV and XML:
<Some_data>
<20020110>
5, 44, Some Movie, 48
5, 69, Another Movie, 63
5, 91, Not Another Movie!, 55
</20020110>
</Some_data>
Now guess what happens if we receive data in this format with a comma in the title? If the software building this file quotes the title, it breaks. If it doesn't quote it, it runs fine. Why? Because we parse each line with:
$line =~
/^(.*?),(.*?),(.*),(.*)$/;
Dear lord.
CDATA? (Score:1)
-Scott McWhirter- | -kungfuftr-
"JAWK - Just Another Whiny Kid"
Re:CDATA? (Score:1)
rjbs
Vienna & Napoleon (Score:1)
When I cycle to my fathers place, my route takes me through the Lobau and past a small memorial called "Napoleonstein" (or something). It marks the place where Napoleon stayed with his army during the Battle of Wagram [wikipedia.org] (when he took Vienna). It is basically in the middle of nowhere, with lots of alluvial forest and mosquitos (in summer) around.
All of which has nothing to do with Pe
Embedding CSV in XML (Score:2)
join(',',@data).Sub-Atomic Parsing (Score:2)
The problem you're trying to solve here is colloquially known as "parsing the atom". That is, the XML tagging suffices to mark up the structure of some blob of data, but doesn't scale down to parse the data fragments inside that blob. For example, consider a nice XML document that has an attribute or a text block that contains a date. Is '
Tue Oct 19 12:19:16