I am a complete newbie to network programming in Perl (and in any language, FWIW).
The aim is to
Connect to localhost on (say) port 2001,
Send a command
Disconnect
I've given a peek into the docs for IO::Socket but due to my ignorance in this field I'm afraid to miss something obvious. Any ready-made minimal example?!?