Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
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 imbibing at the Monastery: (6)
As of 2014-08-21 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (138 votes), past polls