in reply to Socket.pm corrupted

You may have screwed some thing inadvertently. Can you try your scripts under another Perl installation? Do they run there? If so, then something may actually be wrong with your installation. Socket.pm is a core module: so you may try upgrading your perl to the latest release, if it's not yet.