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

Recently I wrote some programs using io::socket::inet, but as off a couple of hours ago i'm having problems. The comment i receive is: Can't locate IO/Socket/INET.pm in @INC (@INC contains: C:/strawberry/perl/site/l ib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C:/strawberry/perl /lib/IO/Socket.pm line 22. Compilation failed in require at C:\strawberry\tt\a.pl line 2. BEGIN failed compilation aborted at C:\strawberry\tt\a.pl line 2. I tried reinstalling this module from Cpan but it failed.I tried searching for inet.pm on my computer, but can't find it. I hope someone can help me. Thank you in advance.

Replies are listed 'Best First'.
Re: sudden problem with io::socket::inet
by Corion (Patriarch) on Sep 11, 2012 at 11:20 UTC

    Perl modules don't vanish. Most likely, you deleted the files or changed something else about your environment. Either reinstall Perl or restore the directory from backup.

    Also note that the module name is IO::Socket::INET.pm, so if you are on a case-sensitive filesystem, you might want to search for INET.pm, not inet.pm. Using Strawberry Perl makes that unlikely, but if you try to search using Cygwin tools, that might be part of the problem.