case folding problem on z/OS

[email protected] (rajarshi das)
Newsgroups perl.unicode,perl.mvs,perl.perl5.porters
Message-ID <[email protected]>
Hi,
Here's a case folding test :

$a = '0178';
$b = '00FF';

$a1 = pack("U0U*", hex $a);
$b1 = pack("U0U*", map { hex } split " ", $b);

if (":$b1:" =~ /:[$a1]:/i) {
print "ok\n";
}

The above fails on z/OS (on perl-5.8.6).
However, if I remove the colon characters from the
test, i.e. 
if ("$b1" =~ /[$a1]/i) {
print "ok\n";
}
then it works fine. 

Any thoughts on why the colon characters cause the
regexp to fail ? also, any pointers to locate the
problem area in the code would be helpful.

Thanks in advance,
Rajarshi.




		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.