Basically, you're making a 32-bit integer by prefixing the 24-bit integer with 8 0-bits. Given a 32-bit integer, you can unpack it.my $myinput = "\x00"; read FILE, $myinput, 3, 1; my $myinteger = unpack 'N', $myinput;
In reply to Re: How do I read a 24 bit integer?
by JavaFan
in thread How do I read a 24 bit integer?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |