I have a csv file and like to split the file into smaller files based on column matching in the file using perl. I am new to perl. I am working on Linux Rhel6.example: fruit1, fruit2,pricerate,quantityorange, apple, 3,9apple,lemon,8,1orange, apple,3,8pineapple,papaya,9,19orange,apple,3,7pineapple,papaya,9,10Output is something like:file1:fruit1,fruit2,pricerate,quantityorange,apple, 3,9orange,apple,3,8orange,apple,3,7file2:fruit1,fruit2,pricerate,quantitypineapple,papaya,9,19pineapple,papaya,9,10the unmatched ones goes into a seperate file. Say file3. Much appreciated for any pointers or any clue,
Splitting a file using perl
perl;split;csv simple