@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.
In reply to Re: Trying to make a search Part 2
by mdillon
in thread Trying to make a search Part 2
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |