in reply to replace/ overwrite values of arrays!

my @array = qw( A R N D ); @array = split /\s+/, 'B N M C';

It seems like you were just missing the split step.


Dave

Replies are listed 'Best First'.
Re^2: replace/ overwrite values of arrays!
by ikegami (Patriarch) on May 14, 2014 at 15:13 UTC
    split ' ' would be better (and be just like qw)