Re: Splitting a CSV file at a variable number

2007-06-29 Thread Chas Owens
On 6/28/07, sum_duud <[EMAIL PROTECTED]> wrote: in essence I would like the perl script to output all the fourth column "0" values to a file called phase_0.csv and all the "1" values to phase_1.csv etc. snip use an array of file handles (warning, untested): use strict; use warnings; open my $

Splitting a CSV file at a variable number

2007-06-29 Thread sum_duud
I have a large CSV file of the format x,y,z,number (a coordinate file) that I need to parse and output as individual files based on the fourth field (column 3). The file looks like the sample below, and the fourth field can be from zero to 20, so in essence I would like the perl script to output a