http://www.perlmonks.org?node_id=676804


in reply to Re^4: Hex Question(s)
in thread Hex Question(s)

Well, your description is quite roundabout for the effect you want to achieve. Basically, you want to build a byte string consisting of arbitrary characters.

For building such stuff, Perl has pack, which builds a string out of various kinds of values.