undef $/; # newlines are not record separators anymore $_ = <>; # slurp the whole file in as one big string