On Wed, May 1, 2013 at 11:33 AM, Eric Brine <ikegami@adaelis.com> wrote: > Breaking > > unpack("H*", "\x{DF}") # df > > is not an option, so you're suggesting that > > unpack("H*", "\x{DF}").unpack("H*", "\x{100}") > > gives something different than > > unpack("H*", "\x{DF}\x{100}") > > That simply makes no sense. > > If you want the hex of a string, use unpack "H*", $s If you want the hex of the UTF-8 encoding of a string, use unpack "H*", encode_utf8 $s If you want to peek inside scalars, use Dump or something other appropriate tool.Thread Previous | Thread Next