if ($subscript == 1) { $aphor = $aphor1 } elsif ($subscript == 2) { $aphor = $aphor2 #... up to and including elsif (subscript == 7) { .. }