Yes, GrandFather, I know about pack and unpack. And although I don't consider myself an expert at them (... yet :-D), I have used them in quite a few programs to date. Anyone who has done socket programming (for example) will certainly have learned how to use them.
But how about you? Do you have any stories to share about concepts which you've learned in the recent past?
$key is an "atom" code from the file being parsed. If there is a handler for the atom $self->$member dispatches to the code to handle it. One neat thing about this is that a derived class can add handlers and the parser just takes it all in its stride. I reckon that's pretty cool - perhaps even elegant. :)
One way to do a binary conversion is:
my $str = '001100010011001100110001';
my $value = pack ('B*', $str);