| Store | Cart

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

From: Frank Merrow <fmer...@qualcomm.com>
Fri, 06 Apr 2007 07:30:10 -0700
>I wondered whether this "print.pm" (which I've never heard of) might>still>be functional on perl 5.8.

I actually misspoke (or wrote) here a little bit.  The actual name of 
the script is print.pl not print.pm.

You should find it by that name without issues in your Perl 5.6 installation.

>But I can't find it anywhere. My build (638) of ActivePerl 5.6 doesn't>have>it - there's no mention of it at>http://ppm.activestate.com/BuildStatus/5.6-P.html , and I couldn't find>it>on CPAN either.

The \p{charclass} was handled by calling a perl script of the same 
name to provide a table.  For instance my example would invoke 
charclass.pl.  This wasn't that convenient BTW as one of our users 
created a script called print.pl and it took a me awhile to figure 
out who was calling it and why.

Those "character class scripts" seem to be missing from my Perl 5.8 
installation . . .

>If it's a pure perl module you could try copying it across from your 5.6

Yeah, I could . . . assuming that still working in Perl 5.8 (not sure 
either way on that score).

However, after I dug around a little bit I found \P{IsPrint} . . . 
though it was pointed out to me in a private email that IsPrint and 
print do almost the same thing, but IsPrint would not find VT, HT or 
FF . . . so I still have some work to do.

Frank

Recent Messages in this Thread
Frank Merrow Apr 06, 2007 02:30 pm