develooper Front page | perl.libwww | Postings from March 2001

Calling IO::Socket::INET getting an error.

Thread Next
From:
Hansen, Keith
Date:
March 25, 2001 03:38
Subject:
Calling IO::Socket::INET getting an error.
Message ID:
D14F36813BDBD31188DC0008C75F9CB401A7C8DA@WEACBUREX02
Guys,

I'm getting the error:

  Undefined subroutine &IO::Socket::INET called at C:\Perl\gnx\lgetr.pl line
7.

From the following code:

#!/perl/bin/perl
# file: lgetr.pl

use IO::Socket;

my $server = shift;
my $fh = IO::Socket::INET($server);
my $line = <$fh>;
print $line;

Any thought from anyone?

Tnanks.

Keith.



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