uva has asked for the wisdom of the Perl Monks concerning the following question:
it is giving error asuse File::BOM; open(IN,"< d:\\input.txt"); ($encoding, $spillage) = get_encoding_from_filehandle(HANDLE); close IN;
but open (IN, '<:via(file::BOM)',"d:\\input.txt") is working fine."Undefined subroutine &main::get_encoding_from_filehandle called"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help needed in File::Bom
by McDarren (Abbot) on Apr 11, 2006 at 15:48 UTC | |
by uva (Sexton) on Apr 11, 2006 at 15:54 UTC | |
by idsfa (Vicar) on Apr 11, 2006 at 16:13 UTC | |
|
Re: help needed in File::Bom
by davidrw (Prior) on Apr 11, 2006 at 15:44 UTC |