$/ = "\n"; my $line = ; # <> operator reads just one line my $whole_file; { local($/) = undef; $whole_file = ; # <> operator reads in all of the data from filehandle F } $line = ; # reads just one line again, since $/ returns to "\n"