in reply to Re^2: A question on array references.
in thread A question on array references.

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.