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) w
On 7/5/07, herostar1981 <[EMAIL PROTECTED]> wrote:
> 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..
Try this just before you print the variable, to the screen or t
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.="0station".
> > $sta[$i]."";}
>
> That _might_ be correct. But why does the loop count th
> At this point, if I use following script, I can work as I wish:
> print "Content-type: text/html\n\n";
> print $kml;
1station38a href=http://globec.whoi.edu>U.S.GLOBEC
http://mapservice-xu.whoi.edu/globec.gif";>
http://mapservice-xu.whoi.edu/maps-bin/globec-xu/map4>GEORGES
BANK MAPSERVER
http
On 7/5/07, herostar1981 <[EMAIL PROTECTED]> wrote:
for (my $i=0;$i<=$#data;$i++)
{ $kml.="0station".
$sta[$i]."";}
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 you ever initialize $kml?
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].="\n 0$key\n"."\n".$tmp_lev0[0][5].','.
$tmp_lev0[0][4].",0\n \n";
}
}
And, this is used to finish the whole file content
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 prob