Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Opening certain files

by mjscott2702 (Pilgrim)
on Nov 09, 2010 at 08:44 UTC ( #870262=note: print w/ replies, xml ) Need Help??


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?


Comment on Re^2: Opening certain files
Replies are listed 'Best First'.
Re^3: Opening certain files
by ikegami (Pope) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://870262]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2016-02-11 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (366 votes), past polls