zemplen has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use utf8; ${^WIDE_SYSTEM_CALLS} = 1; no warnings 'utf8'; binmode(STDOUT, ":utf8"); my $text = chr(0x95);# usually a string read in from a file. print ord ($text), "$text\n"; $text=~s/"\x{0095}"/"\x{017E}"/g; print ord ($text), "$text\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Character re-map using regex
by shenme (Priest) on Nov 16, 2003 at 16:57 UTC |