It's a lot clearer now Jenda, thank you for your time and patience.
I was just wondering three things:
1) where does this take the XML data from (a file? -- if so where is it specified?)
2) this line in particular $parser->filter(\*DATA); is it an output or something else?
3) last thing, I get an error when I try to run this perl script (might be because I don't quite understand the input/output of this script)
Name "main::DATA" used only once: possible typo at sort.pl line 45.
<?xml version="1.0"?>
not well-formed (invalid token) at line 1, column 4, byte 4
at sort.pl line 45
Just off the top of my head, the languages that I'm familiar with: C, C++, Java, Python, XML (seemed relevant in this case :P) and some other things here and there (not counting webdev - doesn't seem relevant here?).
Thank you again for answering my questions. I greatly appreciate it.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.