develooper Front page | perl.perl5.porters | Postings from March 2011

Re: serious PerlIO trouble :(

Thread Previous | Thread Next
From:
Eric Brine
Date:
March 12, 2011 10:06
Subject:
Re: serious PerlIO trouble :(
Message ID:
AANLkTi=zzGG0Ou5dcaWpZ1TjxwmXtAb46K4j9Lpy-xQz@mail.gmail.com
On Sat, Mar 12, 2011 at 4:38 AM, David Leadbeater <dgl@dgl.cx> wrote:

> On 12 Mar 2011, at 09:23, H.Merijn Brand wrote:
> [...]
> > $ perl perlio.pl 1
> > UTF-16:Unrecognised BOM 7061 at
> /pro/lib/perl5/5.12.2/i686-linux-64int-ld/IO/Handle.pm line 1.
> > Compilation failed in require at perlio.pl line 17.
> > Exit 255
>
> Presumably because the open pragma isn't applying inside IO::Handle
>

Sounds to me like the pragma is applying to require IO/Handle.pm, which
doesn't start with a BOM (and isn't UTF-16 encoded).

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About