in reply to open and read file using cgi perl

Could you specify exactly what should be compared? And please also provide the required output of your sample input files.