Hi I'm trying to open a dictionary file and read a list of words from that file. Using a "while (my $words = <DICT>)", I'm trying to match words that end in "a"... "$words =~ /a$/i" and assign it to an array $matches[$counter] = $words . However I know that there are \n's after each word and it will not match. When I try to chomp $words to remove the \n, the word is also removed. I also tried to match /a\n/i without any success either. I can however match the new line character but that would only print out every word. Can anybody tell me the best way I can get around this issue while still using regular expressions? Thanks!