Hello all,
Is there a way to do
my @fields = qw/this that the_other/; foreach (@fields) { $_ =~ s/^|$/"/g; }
without an explicit loop, i.e. by doing something to the array as whole?
Thanks,
In reply to Applying regex to array by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |