in reply to Re^2: Grepping the filehandler
in thread Grepping the filehandler

The \ operator in this case "puts its operand in list context, and creates a list of references to the scalars in the list provided by the operand", so the readline is in list context here and reading all the lines from the file. So in other words it's the same as my $r = \("Line1","Line2","...","LineN");, and a list in scalar context returns its last element.