Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!jarthur!jarthur.claremont.edu From: kevin@jarthur.claremont.edu (Kevin Fink) Newsgroups: comp.lang.perl Subject: Question about Perl on DOS and EOF problem. Message-ID: <11006@jarthur.Claremont.EDU> Date: 28 Feb 91 04:07:13 GMT Sender: kevin@jarthur.Claremont.EDU Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 17 I am using Perl to convert some files from one format to another. The files contain hex 1A codes (EOF markers), which need to be read as data, just like any other code. However, as soon as the first of these comes by, I get an eof and everything I try to getc after that comes up null. How do I get around this? The code looks something like: open(IN,"DATAFILE"); for($i=0;$i<100;$i++) { getc(IN); .do.something.with.it... } Thanks. Kevin Fink