Email::Store::Attachment - my losing battle

Matt Lawrence matt.lawrence at
Fri Dec 1 11:04:13 GMT 2006

Toby Corkindale wrote:
> On Wed, Nov 29, 2006 at 01:42:04PM +0000, Christopher Jones wrote:
>> Should you be using binmode?
> Isn't binmode meaningless on non-DOS machines?

No. binmode changes the PerlIO layer(s) in use on a filehandle, so it 
can be used on any machine for reading different encodings and line-endings.

In this case, setting binmode STDIN, ':bytes' would ensure that incoming 
data was *not* flagged as unicode.


More information about the mailing list