Your title is a little misleading, I think.
Your idea will assign everything in the split list to @common and leave @common2 empty. Here, this does what I think you want, @common2 = @common = split ' ', $fields{'keywords'}; I changed the split to magic split, just in case. If you're right about there just being one space in all cases, there is no harm done.
After Compline,
Zaxo
In reply to Re: Assigning 2 arrays to scalar
by Zaxo
in thread Assigning 2 arrays to scalar
by Dente
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |