A couple things:
- You don't have to be an expert in html, but please at least put a <p> at the end of each paragraph.
- If you have a lot of formatting, you could write your message in a WSYWIG editor like MS Word, save as html, and paste the html (not great, but better than the hard to read posting you put up)
- When you post and hit the preview button, proofread the results first.
- Post the relevant chunks of your code, as well as the specific error messages you received.
- You say you've tried what people have suggested here. What specifically have you tried, and what were the results you got? For example, what posts did you read, and what specific steps did you take?
I can see that you may not know where to start for the last point. So, some debugging tips:
- Learn to use at least a subset of the perl debugger. Start it by typing perl -d, and at the prompt, type h.
- Put in debugging statements in various key parts of your code where you're wondering about a value of a variable, e.g. your socket variable. Use
one of the following:
warn "variable is $variable - $!\n";
carp "variable is $variable - $!\n";
croak "variable is $variable - $!\n";
For the last two (carp and croak), you'll need to put
Use Carp; in your code. carp will give an error message, but not quit, croak will do the same and quit.