Check that the open succeeded with open X, '>', 'memo.txt_error' or die "Open output file failed: $!"; (the three parameter version of open is preferred).
ord is the function you want rather than ORD - case is important in Perl.
In reply to Re: Searching for control characters
by GrandFather
in thread Searching for control characters
by ericdp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |