You need to use pack() to get the number into a raw form.
If you're on Win32, you'll also need to add binmode(FH); to make binary work in general.
In reply to Re: writing binary data in perl
by dws
in thread writing binary data in perl
by rbc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |