in reply to Re^3: Search element of array in another arrayin thread Search element of array in another array
... and File::Slurp::Tiny should allow you to do this: read_lines("filename", chomp=>1, binmode=>":crlf")