my @MainArray = map { chomp; [ split // ] } ; #### my @MainArray = map [ /(.)/g ], ;