probably best to use the XML::Simple module... <br><br><a href="http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm">http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm</a><br><br><div class="gmail_quote">
2009/6/15 wolf <span dir="ltr">&lt;<a href="mailto:superpulse.x@gmail.com">superpulse.x@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey,<br><br>I used your KML file ( renamed it of course ):<br>                 <br>cat test.kml | perl -ne &#39; print &quot;$1: $2\n &quot; if m!&lt;(longitude|latitude)\s*?&gt;\s*?([0-9\.]+)\s*?!&#39;<br><br>Hope this helps,<br>

<br>Cheers,<br>V<br><br><br><div class="gmail_quote">2009/6/14 sairam pareek <span dir="ltr">&lt;<a href="mailto:mariassai@gmail.com" target="_blank">mariassai@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">
Hello everyone.<br><br>I have a kml file, and struggling to write a perl script to parse its value between tags, this is my first task.<br>and the second is to update the value between the tag in the postgresql database table. I m attaching the KML file, Please find the attachment. (I want to parse the longitude, latitude vlaues in these) <br>


                                               <br>                                                                Please help me, its urgent. Waiting for your replies. Hoping for great help from you guys. I wanted to use regular expression for this. I found this group on orkut.<br>


                                      Thanks in advance.<br><br>Regards, <br>Sairam <br><font color="#888888"><br>-- <br>&quot;It is not how much you do, but how much love you put in the doing.&quot;<br>
</font><br></div></div>_______________________________________________<br>
Bangalore-pm mailing list<br>
<a href="mailto:Bangalore-pm@pm.org" target="_blank">Bangalore-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/bangalore-pm" target="_blank">http://mail.pm.org/mailman/listinfo/bangalore-pm</a><br></blockquote></div><br>
<br>_______________________________________________<br>
Bangalore-pm mailing list<br>
<a href="mailto:Bangalore-pm@pm.org">Bangalore-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/bangalore-pm" target="_blank">http://mail.pm.org/mailman/listinfo/bangalore-pm</a><br></blockquote></div><br>