in reply to Reading files in scalar context with <> operator

When you read from a filehandle like so
$line = <IN>;
You get the actual line, if you use an array,
@lines = <IN>;
you will end up with the whole file in the array, one line per array element.

btw, the probably shortest way (ahem), to open a file and print it is simply
open IN, "file"; print <IN>;
or
use File::Slurp; print read_file("file");


holli, /regexed monk/