Welcome to the monastery !
in reply to Just trying to TELNET
Please correct your post , using <code> tags, and post your code un-altered, so we can see what it looks like (See Writeup Formatting Tips).
At present, it is mangled, so it is impossible to advice, save that the perl message is most likely correct - you have an extra left bracket "[" somewhere.
One thing you can try is to run the code from a command line, rather than via CGI - at lease till you pass syntax checking.
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."