my $numerator; my $denominator; #### if ($indicator eq "SH"){ $numerator = $last_element; } #### elsif ($indicator eq "SL"){ $denominator = $last_element; } #### else { print "\nError: There has been an unexpected string within the sec +ond to last element of the array\n"; }