RE: Calling IO::Socket::INET getting an error.
Hansen, Keith (Keith.Hansen@weac.com)
Sun, 25 Mar 2001 12:50:40 -0800
------_=_NextPart_001_01C0B56D.4A7286FA
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 =3D IO::Socket::INET($server);
IO::Socket::INET is a package and no subroutine, you have to call the
constructor method:
my $handle =3D IO::Socket::INET->new( ... ) # or
... =3D new IO::Socket::INET( ... )
--=20
Bj=F6rn H=F6hrmann ^ mailto:bjoern@hoehrmann.de ^ =
http://www.bjoernsworld.de
am Badedeich 7 =B0 Telefon: +49(0)4667/981028 =B0 =
http://bjoern.hoehrmann.de
25899 Dageb=FCll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote =
[!]e
-- listen, learn, contribute -- David J. Marcus =
------_=_NextPart_001_01C0B56D.4A7286FA--