LWP & ActivePerl 5.6
I'm working on an applicaton in which I am handling HTTPS and cookies on Solaris 2.6 . Does anyone have an opinion on the ActivePerl distribution and it's usability in developing LWP applications for this platform? OR Does anyone have a particular distribution they like for this type of Net programming? Regards, Keith.
RE: Calling IO::Socket::INET getting an error.
Thanks Bjoern! Got it. That worked. :-) Thanks again. Keith. -Original Message- From: Bjoern Hoehrmann [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 25, 2001 10:45 AM To: Hansen, Keith Cc: '[EMAIL PROTECTED]' 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:[EMAIL PROTECTED] ^ 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
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:[EMAIL PROTECTED] ^ 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
Calling IO::Socket::INET getting an error.
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.