Hi all,
 
Perl info:
     This is perl, v5.6.1 built for MSWin32-x86-multi-thread
     (with 1 registered patch, see perl -V for more detail)
     Copyright 1987-2001, Larry Wall
     Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com 
 
In the perlop documentation there is the following example given under the tr/// 
function:
 
tr/\0-\xFF//CU; # change Latin-1 to Unicode
tr/\0-\x{FF}//UC; # change Unicode to Latin-1  
 
Whenever I attempt this, however, I receive a compilation error.  I've found a 
question in the mail archive about tr/// with the UC option returning an error when 
attempting a conversion from Latin-1 to UTF8 ("UTF8 encoding with perl" from Douglas 
Gray Stephens, but I haven't been able to find a response ).  
 
The problem is that the code
 
tr/\0-\xFF//CU;
 
or 
 
tr/\0-\x{FF}//UC;
 
returns the following error:
 
Bareword found where operator expected at Convert.pl line 35, near "tr/\0-\xFF//CU" 
syntax error at Convert.pl line 35, near "tr/\0-\xFF//CU". Execution of Convert.pl 
aborted due to compilation errors. 
 
Does anyone know what is causing this problem?  Is there a fix? According to the other 
post about this problem, this code worked on build 623, but started failing on build 
633.
 
Anthony
 
z¹VŠ}öRÇ«²f¢–)à–+-=êåZ)÷ÙK®Éb²Û®ð¶+ÞJÖ­yÊ&N‹§²æìr¸›zm§ÿåŠËlz»Àrدy+Zµç(›ùšŠYšŸù²²æì


Reply via email to