in reply to perl in DOS woes
Then of course you can't use the usual file operators to read your data (but you shouldn't be doing that with a binary file anyway, even on *nix -- hopefully someone with more *nix experience can point out the pitfalls there). You would need to use the read function to get chunks of data from the file and then parse out the resultant buffer. Something like:open "< FH"; binmode FH;
Oh ... and thanks for finding a question I could answer so soon ... My apologies if this first attempt is not as helpful as it might be :)while (read(FH, $buf, 512)) { do something; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: perl in DOS woes
by sauoq (Abbot) on Nov 05, 2002 at 01:33 UTC | |
by scholar (Acolyte) on Nov 05, 2002 at 13:56 UTC |