If you just want Tk to get updated, you can add update after you insert your text. e.g.
sub send {
tie (*SSL, "Net::SSLeay::Handle", "www.openssl.org", "443")
or die "error in tie\n";
if (\*SSL) { print SSL "GET http://index.html \r\n"; }
while (my $buf = <SSL>) {
$txt->insert('end',$buf);
##### Update the Text Widget
$txt->update;
}
}
Or, if you want to update Tk while it is in a loop, possibly only idling, then try putting
$mw->DoOneEvent; inside the loop. This may be what you need to do to get your app working with POE.
HTH.
--
hiseldl
What time is it? It's Camel Time!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.