Quantcast
Viewing latest article 4
Browse Latest Browse All 5

Answer by Naryl for XML reading using Perl

If you can't/don't want to use any CPAN mod:

my @hits= $xml=~/<date\d+>(.+?)<\/date\d+>/

This should give you all the dates in the @hits array.

If the XML isn't as simple as your example, using a XML parser is recommended, the XML::Parser is one of them.


Viewing latest article 4
Browse Latest Browse All 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>