This may do what you want:
use warnings; use strict; my $str = do {local $/ = ''; <DATA>}; print $str . "\n"; $str =~ s/[^\x00-\x7f]//g; print $str; __DATA__ This € that
Prints:
This € that This that
In reply to Re: Removing wide characters
by GrandFather
in thread Removing wide characters
by TomG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |