in reply to Socket Questions
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Socket Questions
by packetstormer (Monk) on Nov 05, 2010 at 17:59 UTC | |
by 7stud (Deacon) on Nov 07, 2010 at 22:31 UTC |