@array = map {[split]} @array; # instead of the first two lines of my snippet