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

Re: A Game Using TCP Sockets

by oiskuu (Hermit)
on Oct 14, 2013 at 02:46 UTC ( [id://1058118]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    } elsif ($get =~ /MESSAGE ([^ ]+) (.*)\n$/) {
    
  2. or download this
    sub get_line {
        my ($fh) = @_;
    ...
        warn do { use Data::Dumper; Dumper $buff{$fh} };
        return $line;
    }
    
  3. or download this
    sub get_line {
        my ($fh) = @_;
    ...
        sysread($fh, $_, BUFF_SIZE, length) for $buff{$fh};
        return get_line($fh);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found