in reply to Search and replace in Unicode files
Example:
The replacement might then be done by:my %conv = ( "\0x00\0x3d" => 'key1', );
please correct me anyone who sees I'm wrong.$search=join '|', map quotemeta,keys %conv; while (<>) { s/($search)/$conv{$1}/geo; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Search and replace in Unicode files
by bm (Hermit) on Jun 16, 2003 at 16:11 UTC |