my $hexstr = unpack("H*", $barestr); # However, notice that $hexstr will be twice as large as $barestr #### _ _ _ _ (_|| | |(_|>< _|