Re: a question write to file!

2007-07-06 Thread herostar1981
Thanks a lot... It's my fault, a big mistake Sorry, my $sta[0] is empty Because of the variables passed by html link. but when print to screen, I pass the right parameters. so awful Thanks again. Sorry. Best Regards, xu On 7 5 , 6 43 , [EMAIL PROTECTED] (Tom Phoenix)

RE: a question write to file!

2007-07-05 Thread Thomas Bätzler
herostar1981 [EMAIL PROTECTED] asked: I have a big question. why are the contents different between what I write to file and what print in screen? Obviously you are doing something wrong ;-) If you want us to help you, please send a minimal code sample that demonstrates your problem.

Re: a question write to file!

2007-07-05 Thread herostar1981
On 7 5 , 11 42 , [EMAIL PROTECTED] (T Baetzler) wrote: Thanks... The following loop is used to format the contents: for my $key (keys %station) { $sta[$k].=Placemark\n visibility0/visibilityname$key/ namedescription![CDATA[hrcenterh3a href=http:// globec.whoi.eduU.S.GLOBEC/a /h3img

Re: a question write to file!

2007-07-05 Thread Tom Phoenix
On 7/5/07, herostar1981 [EMAIL PROTECTED] wrote: for (my $i=0;$i=$#data;$i++) { $kml.=Folderopen0/opennamestation/name. $sta[$i]./Folder;} That _might_ be correct. But why does the loop count through the last element of the @data array, when you're processing the @sta array? And did

Re: a question write to file!

2007-07-05 Thread herostar1981
At this point, if I use following script, I can work as I wish: print Content-type: text/html\n\n; print $kml; Placemark visibility1/visibilitynamestation38/namedescription! [CDATA[hrcenterh3a href=http://globec.whoi.eduU.S.GLOBEC/a / h3img src=http://mapservice-xu.whoi.edu/globec.gif;brP a

Re: a question write to file!

2007-07-05 Thread herostar1981
please... this forum refresh so slowly On 7 5 , 1 06 , [EMAIL PROTECTED] (Tom Phoenix) wrote: On 7/5/07, herostar1981 [EMAIL PROTECTED] wrote: for (my $i=0;$i=$#data;$i++) { $kml.=Folderopen0/opennamestation/name. $sta[$i]./Folder;} That _might_ be correct. But why does