in reply to Pack and Unpack binary data in a variable

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.

Replies are listed 'Best First'.
Re^2: Pack and Unpack binary data in a variable
by ustd (Initiate) on Oct 28, 2015 at 17:00 UTC
    Thanks! It works! (I had posted here first, and then afterwords thought of posting on one other site also).