in reply to Applying regex to array

And you could use one of those loop statement modifiers, they fit nicely.

s/^|$/"/g for @fields;

But that's semanticaly a loop, however.

--kap