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


in reply to crlf mess in unicode utf-16le

Apparently, the encoding layer does not remove underlying layers. A solution (workaround?) is to push raw first.

open OUT, ">temp.txt"; binmode OUT, ":raw:encoding(UTF-16le)";

Replies are listed 'Best First'.
Re^2: crlf mess in unicode utf-16le
by xlat (Initiate) on Apr 28, 2015 at 10:40 UTC
    Thank you guys, I've got same issue with tell() and binmode with :raw remove warnings.