in reply to yet another "reading binary data" question

Why not write your own version of unpack which would support (in the template) 9 bit fields and little-endian integers?

I realize this is a non-trivial task, but once written it's trivial to modify as the record format changes. (That is, your version of unpack would not change, only the calls to it.)

  • Comment on Re: yet another "reading binary data" question

Replies are listed 'Best First'.
Re^2: yet another "reading binary data" question
by dwalin (Monk) on May 07, 2008 at 19:21 UTC
    truth to say i haven't the first idea how to approach that. i mean, i'm not really a perl hacker, i just use it now and then to solve my little tasks. :) i'm not totally non-programmer kind but write something as magic as unpack is definitely beyond my scope. or at least it would take so much time and effort that it's not worth it.
    thanks for the advice, though. :)