$name="Tom";print "$name\n" if $name =~ s/T/M/g; # Substitute every T with Mprint "What is Tom's last name? ";print "You got it!\n" if =~ /Jordan/;