|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: CX or Systemby jeffa (Chancellor) |
| on Apr 04, 2012 at 21:13 UTC ( #963530=note: print w/ replies, xml ) | Need Help?? |
|
There are several CPAN modules available right now that will parse XML for you into a Perl data structure, such as XML::Simple. While your approach works for your needs, consider "doing it the right way" by parsing the XML file into a data structure and pull the proper piece of data out, all within the context of your code, not your code and several other forked processes (cut, grep, etc.).
jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||