Gangabass has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Monks
I have some data with fixed columns width:
<S> <C> <C> <C> <C +> <C> <C> <C> <C> <C> <C> <C> ACACIA RESH CORP ACACIA TCH COM 003881307 110,725 1 +,875,000 SHS SHARED-OTHER 1,2,3 1,875,000 0 0
I need to parse this data. I think the best way is to use unpack() for this (may be i'm wrong?). So i need to know position (in the line) of each column.
How i can find it?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to find start position of each column
by Corion (Patriarch) on May 28, 2008 at 12:09 UTC | |
|
Re: How to find start position of each column
by almut (Canon) on May 28, 2008 at 12:43 UTC | |
by johngg (Canon) on May 28, 2008 at 14:04 UTC | |
|
Re: How to find start position of each column
by moritz (Cardinal) on May 28, 2008 at 12:10 UTC | |
|
Re: How to find start position of each column
by apl (Monsignor) on May 28, 2008 at 12:09 UTC | |
by Fletch (Bishop) on May 28, 2008 at 12:23 UTC | |
by grinder (Bishop) on May 28, 2008 at 14:05 UTC | |
|
Re: How to find start position of each column
by monarch (Priest) on May 28, 2008 at 12:21 UTC |