http://qs1969.pair.com?node_id=481540


in reply to Re^4: Pre-process csv files before using
in thread Pre-process csv files before using

You can just grep out the ones you want.
my @cols = ...; shift @cols; # blindy throw away first column @cols = grep( $_ !~ /(Bandwidth|MSTCPLoopback)$/ , @cols); # exclude +ones ending with "Bandwidth" or "MSTCPLoopback"
re: your code, note that delete is for hashes .. if you wanted to modify your code, you would use the slice function, but grep is much more powerful and perl-ish.