>Timothy Bolz <[EMAIL PROTECTED]> wrote:
>print << EOM
>html code
>EOM

>Would it be "EOM >>IP&ports.html" or 
>"ENDHTML >> IP&ports.html"?

Tim,

You're confusing here document quoting with a file handle.  The here document
is just a another way to quote things just as in your various examples, it has
nothing to do with writing the contents of the quote to a file.  What you need
is a file handle:

open FOO, ">foo.html";
print FOO << EOM
html code
EOM
close FOO;

or

open FOO, ">foo.html";
print FOO "html code";
close FOO;

same thing.  I prefer the here document style as you don't have to escape
quotes.

I don't anything about TK.

Michael.

_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to