http://www.perlmonks.org?node_id=1059349


in reply to Re^4: Detect the Charset of an file
in thread Detect the Charset of an file

Sorry about the problem. I just noticed that I had left out a semi-colon when I first posted that snippet -- that's fixed now, in case you want to try again.