in reply to Question Regarding remove elements from a list

Hard to say without seeing your actual data, but it sounds like you want to use grep to filter out the data before the foreach loop:

my @new_data = grep { $_ eq 'good data' } @old_data;

Just change the block to run the tests on each element of the data. See the grep documentation for details.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.