> At this point, if I use following script, I can work as I wish: > print "Content-type: text/html\n\n"; > print $kml;
<Placemark> <visibility>1</visibility><name>station38</name><description><! [CDATA[<hr><center><h3>a href=http://globec.whoi.edu>U.S.GLOBEC</a> </ h3><img src="http://mapservice-xu.whoi.edu/globec.gif"><br><P> <a href=http://mapservice-xu.whoi.edu/maps-bin/globec-xu/map4>GEORGES BANK MAPSERVER</a></center> <p><hr><a href=http://globec.whoi.edu/jg/serv/globec/gb/ inventory.html1?project%20eq%20AL9404>AL9404</a> <p>38<center><table border=1><tr><th>station_id</th><th>instrument</ th><th>cast</th><th>date_time</th><th>se_flag</th><th>lat</ th><th>lon</ th><th>depth_w</th><th>depth</th><th>comments</th></ tr><tr><td>MkVCTD</ td><td>38</td><td>1994-6-8 04:55</td><td>nd</td><td>41.8008</ td><td>-68.2667</td><td>124.0</td><td>110.0</td><td>nd</td></ tr><tr><td>MkVCTD</td><td>38</td><td>1994-6-8 05:02</td><td>nd</ td><td>41.8017</td><td>-68.2667</td><td>nd</td><td>nd</td><td>nd</ td></ tr><tr><td>MOC1</td><td>38</td><td>1994-6-8 05:08</td><td>nd</ td><td>41.8083</td><td>-68.2633</td><td>119.0</td><td>100.0</ td><td>MOC1198</td></tr><tr><td>MOC1</td><td>38</td><td>1994-6-8 05:53</td><td>nd</td><td>41.8017</td><td>-68.2967</td><td>146.0</ td><td>nd</td><td>nd</td></tr></table></center><p><hr><center></ center>]]></description> <Point> <coordinates>-68.2667,41.8008,0</coordinates> </Point></Placemark> As you see, this is the html source. > if I use "print FID $kml;", the trouble is coming... <Placemark> <visibility>1</visibility><name>station</name><description><! [CDATA[<hr><center><h3>a href=http://globec.whoi.edu>U.S.GLOBEC</a> </ h3><img src="http://mapservice-xu.whoi.edu/globec.gif"><br><P> <a href=http://mapservice-xu.whoi.edu/maps-bin/globec-xu/map4>GEORGES BANK MAPSERVER</a></center> <p><hr><a href=http://globec.whoi.edu/jg/serv/globec/gb/ inventory.html1?project%20eq%20></a> <p><center><table border=1><tr><th>station_id</th><th>instrument</ th><th>cast</th><th>date_time</th><th>se_flag</th><th>lat</ th><th>lon</ th><th>depth_w</th><th>depth</th><th>comments</th></tr><tr><td></ td><td></td><td>-- :</td><td></td><td></td><td></td><td></td><td></ td><td></td></tr><tr><td></td><td></td><td>-- :</td><td></td><td></ td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></ td><td>-- :</td><td></td><td></td><td></td><td></td><td></td><td></ td></tr><tr><td></td><td></td><td>-- :</td><td></td><td></td><td></ td><td></td><td></td><td></td></tr></table></ center><p><hr><center>Thu Jul 5 10:36:08 EDT 2007</center>]]></description> <Point> <coordinates>,,0</coordinates> </Point></Placemark> This is the file contents.. > What trouble? Are you saying that $kml printed to a file is different > than $kml rendered in a web browser, or what? yes, they are different. I don't know how to describe it.. > > Good luck with it! > > --Tom Phoenix > Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/