in reply to Re: read the filename column
in thread read the filename column

++ for spotting the fields are fixed-width. Use of unpack is certainly more efficient than split. But I don't see how you arrived at a field-width of 10 for the final 'Owner' field; isn't this field better unpacked with 'A*' to make it width-independent?

Replies are listed 'Best First'.
Re^3: read the filename column
by Anonymous Monk on Jul 09, 2011 at 18:53 UTC
    Perhaps you didn't notice, but all the entries are off by one

      I did not notice, nor did I check. I ran the code with narrower fields of my own choosing in order to have more viewer-friendly output. But the question remains: Would not 'A*' be a better unpacker for the final (i.e., right-most) field?

        But the question remains: Would not 'A*' be a better unpacker for the final (i.e., right-most) field?

        Better how? Yes, its more generic, but the record is fixed-width.