"be consistent" | |
PerlMonks |
Re^2: RegEx Riddleby reasonablekeith (Deacon) |
on May 28, 2008 at 10:12 UTC ( [id://688826]=note: print w/replies, xml ) | Need Help?? |
I'd take a different tack, and loop through the placemark nodes.
I've also assumed the OP wants all coords, rather than the last one as per your example, so have dumped them in a hash of arrays... I agree with the other comments though, you need a good reason to not use a proper xml parser, the above code won't be very robust, and only supports a fraction of the valid ways you could write that xml.
--- my name's not Keith, and I'm not reasonable.
In Section
Seekers of Perl Wisdom
|
|