develooper Front page | perl.perl5.porters | Postings from October 2005

Error in IO::Socket POD

Thread Next
From:
nnposter
Date:
October 31, 2005 17:14
Subject:
Error in IO::Socket POD
Message ID:
io-socket-atmark.1@users.sourceforge.net
The following code snippet is in POD for IO::Socket, method "atmark":

    use IO::Socket;

    my $sock = IO::Socket::INET->new('some_server');
    $sock->read(1024,$data) until $sock->atmark;

I believe that the call to "read" should be:

    $sock->read($data,1024)....

Cheers,
nnposter

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About