ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-porters
perl-win32-porters
Re: Porting Perl 5.6 to Perl 5.8 need \P{print}
by Frank Merrow other posts by this author
Apr 5 2007 5:51PM messages near this date
view in the new Beta List Site
Re: Porting Perl 5.6 to Perl 5.8 need \P{print} | Changes to DLL interface between Perl 5.6 and Perl 5.8
>      $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

_______________________________________________
Perl-Win32-Porters mailing list
Perl-Win32-Porters@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Frank Merrow
Sisyphus
Frank Merrow
Frank Merrow

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved