Update: I guess your approach can work, but it's a little awkward. You are comparing the octal representation of a number (which is a string) to a decimal value. Doing it your way I would have written it:if ($line =~ m/\014/) { # $line contains a Control-L }
$test = sprintf("%o", ord $_); if ($test eq "14") { ... }
In reply to Re: ASCII insert after read
by pc88mxer
in thread ASCII insert after read
by monkjeff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |