splice is the super-tool in Perl to extract elements from an array or to replace some elements.

You cannot apply it directly to CSV file but we know we can use the Text::CSV module to read and write arbitrary CSV files. We can use that to read in a CSV file line-by-line and as each line is represented as an array we can use splice on the array.

Effectively working on the columns of the CSV file.