e-letter wrote: > > I have a csv file (greater than 256 columns hence unable to open in > spreadsheet) of the following format: > > column header1, column header2, column header3 > 1,0.0e0,0.0e0,5e-6 > 2,0.0e0,0.0e0,6e-7 > 3,0.0e0,0.0e0,0.0e0 > > I want to perform: "if column headerx contains only values of 0.0e0, > delete the column (including the column header). > > How do I start please?
The Text::CSV module will be useful. I suggest you do this in two passes: run through the file once to work out which columns should be deleted, then a second time copying all but the deleted columns to an output file. Does this help get you started? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/