in reply to Re: Reading nested records in binary data
in thread Reading nested records in binary data
Thanks, I'll try unpack. Re: substr, since these are fixed length records, it takes less effort to use unpack, like you have in your code, as opposed to using substr multiple times. This is, of course, based on intuition - I know how efficient code actually is depends on other factors too. But I like less code :)