in reply to replace/ overwrite values of arrays!

I, too, may not really understand your question, but:

c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my @array = qw(A R N D); dd \@array; ;; @array = 'B N M C' =~ m{ \S }xmsg; dd \@array; ;; @array = 'Be No More Care' =~ m{ \S }xmsg; dd \@array; ;; @array = 'Be No More Care' =~ m{ [[:upper:]] }xmsg; dd \@array; ;; @array = 'Be No More Care' =~ m{ \S+ }xmsg; dd \@array; " ["A", "R", "N", "D"] ["B", "N", "M", "C"] ["B", "e", "N", "o", "M", "o", "r", "e", "C", "a", "r", "e"] ["B", "N", "M", "C"] ["Be", "No", "More", "Care"]

Note that the pattern you use is really important!