Getting columns from csv file in perl
Hi All,
How can i get columns from cvs file into an array with out using Text::xSV or Text::CSV_XS.
The CSV file is a dynamic file.
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
|
Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 14 hours ago
2 days 15 hours ago
2 days 16 hours ago