| Store | Cart

Re: Porting Perl 5.6 to Perl 5.8 need \P{print}

From: Frank Merrow <fmer...@qualcomm.com>
Thu, 05 Apr 2007 17:51:54 -0700
>     $errmsgbase =~ tr/[\200-\377]/./; # Kill UFT-8 Problem Characters>     $errmsgbase =~ s/\P{print}/./g;   # Doctor Unprintable Characters

Okay, answering my own question here . . . this seems to work:

$errmsgbase =~ s/\P{IsPrint}/./g;   # Doctor Unprintable Characters

Oddly, my reading of Perl Programming says this should also work, but 
it does not:

$errmsgbase =~ s/\P{IsC}/./g;   # Doctor Unprintable Characters

Frank

Recent Messages in this Thread
Frank Merrow Apr 06, 2007 12:51 am