[EMAIL PROTECTED] schreef:

> [...] I'm reading an unicode utf-16le file and have successfully
> done so but with one issue.  When I print the first line of input the
> BOM is still there...

By specifying the "le", you express that you already know the byte
order. 
The U+FEFF is then read as the "zero-width no-break space", and not 
as the BOM. 

So either toss the "le" or toss the BOM character: s/^\x{FEFF)//;

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to