Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicode

by ikegami (Pope)
on Feb 15, 2010 at 06:43 UTC ( #823228=note: print w/replies, xml ) Need Help??

in reply to PerlIO: crlf layer on Windows interfering with UCS-2 unicode

Note that your proposed solution disables buffering. Replace

open my $fh, ">:raw:encoding(ucs-2le):crlf:utf8", $qfn


open my $fh, ">:raw:perlio:encoding(ucs-2le):crlf:utf8", $qfn

to support buffering.

Also, there doesn't appear to be a need to specify :utf8, so all you need is

open my $fh, ">:raw:perlio:encoding(ucs-2le):crlf", $qfn

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://823228]
[LanX]: do you know the story of the triangle player?
[choroba]: Oh, the Czech one playing the German composition?
[choroba]: BTW, the elections are over. We already have the final results.
[choroba]: I should probably apply for a job somewhere abroad.
[LanX]: nope this one One day the triangle player of an orchestra gets very ill and goes to the hospital.. ..

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-10-21 19:34 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (270 votes). Check out past polls.