UPDATE - Wow. Sorry for not responding to all who responded here. I'm sorely tempted to copy a thank-you to each, but that smacks of spam and insincerity so I'm not sure I want to do this. Up-Votes were done, though, so your contributions were not ignored.
My one defense is that you gave me so much to think about and work through that I put in a lot more time than usual to work the concepts into my code :) Successfully, too. I love it when that happens.
I'm running through an array via foreach, and as it runs through the array I'd like to be able to delete rows based on specific content. I've found reference material showing how to do this with a hash, but not with an array.
Changing over to a hash would add to the complexity. I need to keep the rows in the same order as they are read in from the file, and don't otherwise need hash features for this data.
Is it possible to just delete the current row from an array when looping through it without setting up a counter and splice operation ? That's the only way I can see of accomplishing this, and I suspect this problem could be solved in a more concise way.
I can clear the row with a regex substitution, but this leaves a blank row in place and the dreaded uninitialized value warning rears up...