pnsreee has asked for the wisdom of the Perl Monks concerning the following question:
the fields are like this
Numb,Name,Class,Type,...... 201,Bazaar,b2,53,.......... 121,Raymond,y1,02,... 232,Robert,p1,04,...............
I am using following code to get columns.
@tmp = `more +2 flat1.txt | cut -d "," -f $i` ;
It is giving out put and also error saying that refer help. Can any one give me equivalent to this
Edit: g0n - formatting tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Getting columns from cvs file in perl
by Fletch (Chancellor) on Apr 24, 2007 at 13:37 UTC | |
by thezip (Vicar) on Apr 24, 2007 at 13:45 UTC | |
Re: Getting columns from cvs file in perl
by Joost (Canon) on Apr 24, 2007 at 13:38 UTC | |
|