in reply to Re: send ascii character in telnet.pm
in thread send ascii character in telnet.pm

A simpler option is to use the \c token:
print "\cG"; # ring bell print "\cD"; # send EOF marker