That's what pack and unpack are really good for, along with fixed-width text.
(Added) merlyn has a fine tutorial article on pack/unpack at his site.
After Compline,
Zaxo
In reply to Re: Perl Primer to working with binary data
by Zaxo
in thread Perl Primer to working with binary data
by unixhome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |