Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I wrote a perl script that monitors server ports and indicates whenever a process (eg sendmail) dies. When I run the script I get this error : Can't locate object method "new" via package "IO::Socket::Inet" any help will be appreciated.

Replies are listed 'Best First'.
Re: IO::SOcket error
by no_slogan (Deacon) on Jun 07, 2001 at 22:46 UTC
    INET should be all caps. IO::Socket::INET. Be sure you use IO::Socket;, too.