in reply to RE: RE: Why, what, where to unpack?! (was: Files, unpack and text values)
in thread Files, unpack and text values

the slurp/unpack method does not lose any bytes. i checked my code's round-trip integrity with cmp(1) like so:
[mike@prometheus ~]$ perl -e 'undef $/; open IMG, "foo.gif"; print pack("H*", unpack("H*", <IMG>));' | cmp foo.gif -
  • Comment on RE: RE: RE: Why, what, where to unpack?! (was: Files, unpack and text values)
  • Download Code