Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Get data from a file and put it in a Tk Entry

by pc88mxer (Vicar)
on May 08, 2008 at 19:02 UTC ( [id://685526]=note: print w/replies, xml ) Need Help??


in reply to Get data from a file and put it in a Tk Entry

What kind of server are you connecting to, and is there a protocol involved (like HTTP) to get the data? Or does the data just start coming once you make a connection?

Making socket connections is easy with the IO::Socket::INET module:

use IO::Socket::INET; my $hostname = "localhost"; my $port = 19; $sock = IO::Socket::INET->new("$hostname:$port") or die "unable to connect: $!\n"; while (<$sock>) { ... # process line of data here } close($sock);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://685526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2026-04-16 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.