in reply to Re: BLOBs
in thread BLOBs

Yes I binmode, and so should YOU :)

You might run into "issues" if you don't binmode, so it's good to always binmode

... open(my $fh, 'index.gif' ) or die $!; binmode $fh; ..

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: I binmode
by pelagic (Priest) on Jun 18, 2004 at 12:50 UTC
    I binmode therefore I am

    pelagic
Re: I binmode
by nothingmuch (Priest) on Jun 18, 2004 at 21:23 UTC
    Well, alternatively you can make your program die before you get burned by binmode if you expect funny stuff to work, like sending "\n" to sockets, using semget extensively, and opening a pipe to "/usr/lib/sendmail" for all your mailing needs.

    every time i see this 'binmode' I remember how backwards OSs can be... *sigh*.

    -nuffin
    zz zZ Z Z #!perl