in reply to Perl File Comparison

it doesnt seem to work
You should provide more details about how it doesn't work.

Tip #1 from the Basic debugging checklist: use strict and warnings

Global symbol "$infofilter" requires explicit package name at ...

You probably want:

while(my $line_filter = <$info_filter>)