in reply to Trouble connecting To Server

\cX mimics CTRL- behaviour...
\cB for CTRL-B, \cC for CTRL-C.
BTW this stuff is mentioned in perlop.

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.

Replies are listed 'Best First'.
Re: Re: Trouble connecting To Server
by La12 (Sexton) on Jun 19, 2001 at 20:59 UTC
    I tried the \cB and \cC, but it still doesn't work. I think this has something to do with the way I'm sending the data. Again, typing everything in HyperTerminal works fine. Is there some "Perl terminal emulation mode"? -- whatever that means. Does terminal emulation send data in a "special/different" way than IO:SOCKET?

    -about to go nuts-
    Vic

      Did you try just sending the ascii value of ctrl-c? Maybe using pack? (print \002; works too, no?)
Re: Re: Trouble connecting To Server
by La12 (Sexton) on Jun 22, 2001 at 10:14 UTC
    Thanks for your help guys. I got it work. It was indeed the \c character that solved the issue.