http://www.perlmonks.org?node_id=870262


in reply to Re: Opening certain files
in thread Opening certain files

Would the readline approach still work if it was a packed binary file, with fixed size records ("structs") with no end-of-record indicator?

In this case, wouldn't it be necessary to binmode the filehandle and read the required number of bytes, before unpacking?

Replies are listed 'Best First'.
Re^3: Opening certain files
by ikegami (Patriarch) on Nov 09, 2010 at 17:08 UTC

    Would the readline approach still work if it was a packed binary file, with fixed size records ("structs") with no end-of-record indicator?

    I said it would. Did you got read the documentation to which I linked?

    wouldn't it be necessary to binmode the filehandle

    Yes, no matter which method you use.