in reply to Trying to make a search Part 2

everybody is wrong!

@data = <DATA>; does not read only one line. it reads all available lines from the DATA filehandle. has everybody gone mad?

in scalar context, the <FH> operator returns a single line, but in list context, it returns them all. '@data =' is clearly a list context.