in reply to Assigning 2 arrays to scalar

Your title is very misleading - please consider changing it.

split returns an array, not a scalar. You can evaluate it in a scalar context if you like, but that's probably not your goal, according to the code you present (@ is for arrays).