in reply to Reconstruct binary data saved with unpack("H*", $b)
The problem with your sample data is it doesn't come in pairs -- this is where the null is coming from, its padding -- H* demands pairs