I have an array, @cuts, of indices of the elements that I would like to remove from @Data. Is this an appropriate way to do so?
foreach (@cuts){
$Data[$_] = "NULL";
}
for my $i (0 .. $#Data){
if ($Data[$i] eq "NULL"){
splice(@Data,$i,1);
}
}