Welcome to the Monastery, ustd!
Update: When you cross-post on other sites, it is polite to say you've done so. This reduces duplicate efforts.
Please provide us with a sample of the original data you're working with.
pack "H*", $var; should do the trick I would think.
In reply to Re: Pack and Unpack binary data in a variable
by stevieb
in thread Pack and Unpack binary data in a variable
by ustd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |