Perl: the Markov chain saw | |
PerlMonks |
Re^3: UTF-8 text files with Byte Order Markby ikegami (Patriarch) |
on Feb 13, 2007 at 20:36 UTC ( [id://599772]=note: print w/replies, xml ) | Need Help?? |
"!" in an ASCII file is also valid. But if you place a "!" at the start of your Perl program, it probably will not compile. It is a malformed file, not from a UNICODE perspective, but from your parser's perspective. I provided two alternatives (removing the BOM and File::BOM) that will work with your broken tools (i.e. tools that add undesirable character to the files you edit). I'd go with them since allowing the BOM is surely a good thing.
In Section
Seekers of Perl Wisdom
|
|