Use an elsif statement to check if a different condition is true
$lang = <STDIN>; chomp($lang); if ( $lang eq "perl" ) { print "Congratulations, you choose perl!\n"; } elsif ( $lang eq "Tcl" ) { print "Tcl is great, too.\n"; } else { print "Well, use $lang if you feel "; }