rammohan has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on how to delete a column while reading csv file in perl

Replies are listed 'Best First'.
Re: how to delete a column while reading csv file in perl
by choroba (Cardinal) on Jan 24, 2014 at 08:57 UTC
    Just open the file using Text::CSV. For each parsed row, you will get an array of values. Just splice the array (at index 3 for the 4th column) and output to a new file.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: how to delete a column while reading csv file in perl
by Corion (Patriarch) on Jan 24, 2014 at 08:56 UTC

    You do not show the code you've tried.

    The approach is very simple:

    1. Read all columns of a line
    2. Write only the columns you need

    Before you post further questions, please first write and post the code, and explain what it does and where it fails to do what you need. Also provide short but relevant input data.