You can't have both a string and an array reference in the same scalar (array element).
You can either store the entire string, and split it when you need an individual word, or store the words individually in an array, and join them when you want the entire string.
In reply to Re^3: A question on array references.
by Eliya
in thread A question on array references.
by perl514
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |