It's always great to learn some new techniques and then go do some research on them. Awhile ago I would have just used a foreach loop but I am forcing myself to try to recognize when there is a better way to do something so I can try to learn more. The more you teach me, the more I learn. The more I learn, the more I teach.

I really like the map function myself, it can make life pretty easy, but part of your question asked which is the fastest and using map probably is not the fastest. You can use map to remove the quotes, leave the original array unmodified and assign to a new array all in one shot:

Code

@new = map {my $t = $_; $t =~ tr/"//d; $t} @old;

but I so doubt that is faster or even as fast as the code I already posted. -------------------------------------------------