in reply to read the filename column

Yes,
my( $username , $BatchID , $Filename , $size , $Date , $Status , $Owne +r ) = unpack ' A17 A15 A27 A16 A26 A16 A10 +';

Replies are listed 'Best First'.
Re^2: read the filename column
by AnomalousMonk (Archbishop) on Jul 09, 2011 at 18:14 UTC

    ++ 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?

      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?

Re^2: read the filename column
by roadtest (Sexton) on Jul 09, 2011 at 17:38 UTC
    Thanks, nice to know unpack can be used this way:-) cheers,