use Encode qw( decode encode ); my $input = '...'; my $enc = 'US-ASCII'; my $spc = encode($enc, ' '); my $filtered = decode($enc, encode($enc, $s, sub { $spc }));
In reply to Re: Excluding non ascii characters
by ikegami
in thread Excluding non ascii characters
by millsperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |