Hi,
There must be an easy way to do a simple unicode string search and replace!
I need to search a utf-16 string and replace with a much longer utf-8 string
converted to utf-16 much like this:
while(<FILE>)
{
$_ =~ s/foo/bar/;
}
where FILE and foo are utf-16 and bar is pulled first from an ascii file
then converted to utf-16 before replacement. Seems like this should be a
simple regexp but it is beyond me. Can someone point me in the right
direction. I'm afraid the unicode docs are greek to me. Thanks...
Best regards,
BobS
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>