Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Iteratively unpack structure from binary file

by ikegami (Patriarch)
on Oct 20, 2014 at 18:33 UTC ( [id://1104479]=note: print w/replies, xml ) Need Help??


in reply to Re: Iteratively unpack structure from binary file
in thread Iteratively unpack structure from binary file

Well, read buffers, so,
my $template = 'iifff'; my $rec_size = template_len($template); while (1) { my $rv = read($fh, my $rec, $rec_size); die "$!\n" if !defined($rv); last if !$rv; die "Premature EOF\n" if $rv < $rec_size; my @fields = unpack($template, $rec); ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-18 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found