http://qs321.pair.com?node_id=1019230


in reply to waitfor() ctrl+a and ctrl+c in net::telnet

waitfor takes a perl regex as a parameter. ctrl chars can be matched using either their hex values (ie \x01 for ctrl-A) or as ctrl chars themselves (ie using \cA for ctrl-A). This is all explained in perlreref. Have you already tried this?

fnord

  • Comment on Re: waitfor() ctrl+a and ctrl+c in net::telnet