print "Enter word1: >> "; chomp (my $word1 = ); print "\nEnter word2: >> "; chomp (my $word2 = );