ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
How can I parse a file columnwise. Suppose I have file which has following content in a matrix like pattern :
20 30 40
60 70 80
90 100 49
We usually read a file line by line, so we eventually parse it rowwise. But I need to parse it columnwise so that I can randomly know which co-ordinate(say col2,row1)is holding what.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Columnwise parsing of a file
by BrowserUk (Patriarch) on Feb 25, 2013 at 13:48 UTC | |
|
Re: Columnwise parsing of a file
by Athanasius (Archbishop) on Feb 25, 2013 at 13:57 UTC | |
by ghosh123 (Monk) on Feb 26, 2013 at 09:51 UTC | |
by BrowserUk (Patriarch) on Feb 26, 2013 at 09:58 UTC | |
by Tux (Canon) on Feb 26, 2013 at 10:00 UTC | |
by tmharish (Friar) on Feb 26, 2013 at 09:56 UTC | |
by topher (Scribe) on Feb 26, 2013 at 16:15 UTC | |
|
Re: Columnwise parsing of a file
by mhearse (Chaplain) on Feb 25, 2013 at 22:07 UTC |