in reply to socket programming
The perl code that you provided runs with no complaints on my machine.
This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x86-multi-thread-64int
If I try to install the Socket module, I am told:
Socket is up to date (2.021).
If I look in C:\Strawberry\perl\lib\auto\Socket\, I see:
Socket.xs.dll
Upon further research, I find that the Socket module is in the list of Perl core modules.
In Section
Seekers of Perl Wisdom