I just wanted a wrapper class to be able to read from a buffer like this:
But that is exactly what I mean by "fighting unpack". The buffer has a fixed length--2 + 4 + 32 + 1 + 32 + 1 = 72--so deal with it that way.
Your 'wrapper class' is unnecessary and overkill. Stop trying to write Java in Perl and just use Perl.
That's just my opinion. You are, of course, perfectly within your rights to completely ignore it.
In reply to Re^3: Parsing protocol data: unpack and bytes
by BrowserUk
in thread Parsing protocol data: unpack and bytes
by dichtfux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |