in reply to Creating array from previous script using split
Smells like homework.
Is it?
If so, label it. If not, tell us why you're using two scripts.