Skip Menu |

This queue is for tickets about the Unicode-CaseFold CPAN distribution.

Report information
The Basics
Id: 82413
Status: rejected
Priority: 0/
Queue: Unicode-CaseFold

People
Owner: Nobody in particular
Requestors: victor [...] vsespb.ru
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: CaseFoldPP module interface a bit broken
The only way to use it is perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFold->case_fold(1)' the following does not work: perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFoldPP->case_fold(1)' perl -MUnicode::CaseFoldPP -e 'case_fold(1)' perl -MUnicode::CaseFoldPP -e 'fc(1)'
On Fri Jan 04 13:49:23 2013, vsespb wrote: Show quoted text
> The only way to use it is > > perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFold->case_fold(1)' > > the following does not work: > > perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFoldPP->case_fold(1)' > perl -MUnicode::CaseFoldPP -e 'case_fold(1)' > perl -MUnicode::CaseFoldPP -e 'fc(1)'
Hi, there is no CaseFoldPP interface; it's an internal package. The only interface you should be using, and the only module you should be "use"ing, is Unicode::CaseFold. It will use XS whenever it's available, and pure perl if it's not. If you want to force PP even if XS is available (perhaps for debugging), set $ENV{PERL_UNICODE_CASEFOLD_PP} = 1 before loading the module.