|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: XML parsingby rjt (Pilgrim) |
| on Nov 05, 2012 at 13:50 UTC ( #1002328=note: print w/ replies, xml ) | Need Help?? |
|
perl -nle 's/\|(.+?)\|/print $1/eg' < test.xml Outputs:
However, if you need something more robust, you will want to check out one of the many XML modules such as XML::Simple.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||