in reply to reversible pack()?
print Compress::Zlib::memGunzip( pack 'H*', $code );
and you are unzipping the packed $code.
HTH