in reply to Array to String
or with map and creation of a new arrayforeach (@array) { $_= '<tag>' . $_ . '</tag>' }
my @newarray= map { '<tag>' . $_ . '</tag>' } @array;
UPDATE: misread your question. Should you ever need the tags in the array itself, this would be the answer ;-)
|
|---|