open(RECORDS, "/tmp/logs/records.txt") or die "Could not open records file: $!"; local $/ = undef; # Ignoring binmode as its a text file my $RE = join '|', ; close RECORDS;