in reply to help needed in File::Bom

try use File::BOM qw( :all ) -- looks like the et_encoding_from_filehandle() function just isn't getting imported (the File::BOM docs state that nothing is exported by default).