in reply to A more elegant use of unpack
a A string with arbitrary binary data, will be null padded. A A text (ASCII) string, will be space padded. [download]