in reply to Reading files in scalar context with <> operator
You get the actual line, if you use an array,$line = <IN>;
you will end up with the whole file in the array, one line per array element.@lines = <IN>;
oropen IN, "file"; print <IN>;
use File::Slurp; print read_file("file");
|
|---|