[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Columns



>123420010110010010101  (and so on this way => )
>and so on...
>
>How can I read such a file split in (fixed) columns ?
>I would like to insert tabs at the end of each field, creating
>a tab-delimited text file.

You probaly want to look at unpack() for reading the fixed width fields in
a while(<FILEHANDLE>) loop and some variant of 'print join()' to write them
back out.




--
Party? Party, lord? Yes, lord. Right away, lord.
        - Beopunk Cyberwulf