sms - How to send a Ctrl-Z in Perl -


i'm trying send ctrl-z command in string, i'm doing:

$command = "prueba de código\26"; $port->write($command); $answer = $port->read(255); 

where "command" string want send trough "port" (device::serialport), , i'm trying capture response "answer", problem i'm think \26 (ctrl-z) not working. port cell phone connected , objective send sms wich "prueba de código" trough phone. need ctrl-z sended because interpreted end of text.

the \nnn notation treats numeric arguments octal digits, sending chr(22) (ctrl+v?)

$ perl -e 'print ord("\26")' 22 

character 26 can expressed in of these ways (and few others)

chr(26) "\032" "\x1a" "\cz" 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -