http://www.perlmonks.org?node_id=885885


in reply to Filtering lines from one file from another

If you supply some code, you can get some Perl-specific help. Until then, as an aside, you can do this without perl at all if you're on a system with grep installed:
$ grep -vf file2 file1 cat dogwhisperer mother