in reply to Re: Re: Scoping Issue
in thread Scoping Issue

There's no somehow about it, telnet is defined as having a bunch of internal commands which anyone using it should consider. It uses the 255 character to indicate that one or more following characters will be telnet options. (An actual 255 char is sent doubled.) See telnet protocol.

(I've actually written a module to allow telnet options to be ignored/dealt with on any socket, but not gotten around to documenting/finishing it .. )

C.

Replies are listed 'Best First'.
Re: Re: Re: Re: Scoping Issue
by webdorx (Initiate) on May 26, 2004 at 11:03 UTC
    some interesting points... I made the following changes but am still having the same problem. changed Socket to IO::Socket. removed the () in valid_req sub. removed the --debug option , and just made it use warnings; when i print "***$clientreq***\n" i get something like the following. >hello ***hello ...etc etc i don't see any extra chars... added the following line after my chomp. $clientreq =~ s/\n//g; no difference. any other ideas?