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

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

Thread Previous | Thread Next
From:
Hansen, Keith
Date:
March 25, 2001 12:50
Subject:
RE: Calling IO::Socket::INET getting an error.
Message ID:
D14F36813BDBD31188DC0008C75F9CB401A7C8DB@WEACBUREX02
Thanks Bjoern!
Got it.
That worked. :-)

Thanks again.

Keith.

-----Original Message-----
From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net]
Sent: Sunday, March 25, 2001 10:45 AM
To: Hansen, Keith
Cc: 'libwww@perl.org'
Subject: Re: Calling IO::Socket::INET getting an error.


* Hansen, Keith wrote:
>I'm getting the error:
>
>  Undefined subroutine &IO::Socket::INET called at C:\Perl\gnx\lgetr.pl
line
>7.
>

>my $fh = IO::Socket::INET($server);

IO::Socket::INET is a package and no subroutine, you have to call the
constructor method:

  my $handle = IO::Socket::INET->new( ... ) # or
         ... = new IO::Socket::INET( ... )
-- 
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981028 ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
            -- listen, learn, contribute -- David J. Marcus             

Thread Previous | 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