Adding use warnings; to the top of the script, I immediately get:
Name "main::send_date" used only once: possible typo at ...
So, that presumably needs to be $send_data.
You should also add use strict; to the top of the script and fix all the issues it reports.
There also seems to be problems with functionality. You have, for instance:
print "\nSEND( TYPE q or Q to Quit):";
but I can't see where you're capturing the user input.
As you're new to Perl, I'd also recommend you add use diagnostics; to the top of your script - this will provide more verbose messages.
You can also test the script without actually running it from the commandline by typing:
perl -c script_name
Finally, perlipc has lots of information about using sockets.
-- Ken
In reply to Re: Socket Questions
by kcott
in thread Socket Questions
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |