in reply to Pulling bytes out of string
Sure looks to me that the h (or H) formats are just what the doctor ordered. (FYI: the format-strings are defined, in very great detail, in perldoc pack.)
See also perlpacktut.
Give a man a fish: <%-{-{-{-<