test.pl matches dict to file