[plug] Perl Question
Matthew Robinson
matt at zensunni.org
Fri Apr 19 13:00:10 WST 2002
Having not played with Device::SerialPort I can't guarantee that this will
work but to put a Ctrl-Z into a scalar should simply be a case of:
$scalar = "\cZ";
The \c is the escape character for Ctrl (like \n is the character for
newline).
Hope this helps,
Matt
--
#!/usr/bin/perl
s&&!msfQ!&&s&$&utvK&&s&(Q)&\1!sfiupoB&&s&^&reverse Ibdlfs&e&s&^&#
&&s&$&#!uojsq&&s&(.)&chr(ord($1)-1)&ge&s&(.*)&reverse $1&see
----- Original Message -----
From: "Nathan Alberti" <nathan at nathanalberti.com>
To: <plug at plug.linux.org.au>
Sent: Friday, April 19, 2002 12:25 PM
Subject: [plug] Perl Question
>
> Can someone help me with what is probably a very simple problem, I need to
> send a modem I am communicating with via Device::SerialPort a ctrl-z. I am
> just not sure how to generate this and if it can be part of a scalar.
>
> Regards,
>
> Nathan.
>
>
>
More information about the plug
mailing list