in reply to Assigning 2 arrays to scalar
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).