Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2014-10-22 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls