Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!swrinde!ucsd!ucrmath!rearl From: rearl@watnxt3.ucr.edu (Robert Earl) Newsgroups: comp.lang.perl Subject: Re: MS-Dos perl: open in binary mode? Message-ID: Date: 19 May 91 22:03:39 GMT References: Sender: news@ucrmath.ucr.edu Organization: (EVIL!) Lines: 23 In-reply-to: shj@login.dkuug.dk's message of 19 May 91 17:28:04 GMT In article shj@login.dkuug.dk (Stig Jacobsen) writes: | Does anyone know how to open a file in binary mode under MS-Dos? | The usual, | | open(HANDLE, "file"); | | .. opens the file in text mode, so my read's fail after having | encountered a ctrl-z in a binary file.. | | I'm using MS-Perl 3.0pl41. binmode(HANDLE) after opening it, but *before* doing any operations (input, output, seek?) on it. -- ______________________________________________________________________ \ robert earl / "Love is a many splintered thing" rearl@watnxt3.ucr.edu \ --Sisters of Mercy rearl@gnu.ai.mit.edu /