I can't write the apropriate content to the file. Hi everybody,
   I have a perl script, which can write some message to a new file,
looks like the following.

my $cmd="touch /data3/OGCserver-xu/htdocs/tmp/$time".".kml";
`$cmd`;#`touch ../../htdocs/tmp/xuhuanxiang.kml`;
`chmod 777 /data3/OGCserver-xu/htdocs/tmp/$time.kml`;
open (XHX,">","/data3/OGCserver-xu/htdocs/tmp/$time.kml") ;
#print "Content-Type: application/vnd.google-earth.kml+xml\\n\\n";
print $kml;
-------------------------------------------------------------------- 1
print XHX $kml;close XHX;
-------------------------------------------------------------------2

The script does work well on a webpage, but it only write a part of
the message to the file on another webpage.

Can anybody help me?

Best Regards,
xu


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


