in reply to Trying to make a search Part 2

Two things. Don't use the pattern match if eq will work. And @data = <DATA>; only reads the first line of your file.

UPDATE: I stand corrected.
As always, I continue to learn daily. Thanks.

Replies are listed 'Best First'.
RE: Re: Trying to make a search Part 2
by sean (Beadle) on Jun 05, 2000 at 20:09 UTC
    Actually,  @data = <DATA>; will normally slurp in the whole file.
RE: Re: Trying to make a search Part 2
by lhoward (Vicar) on Jun 05, 2000 at 20:11 UTC
    A filehandle read called in a list context populates the whole file into the list, one line per element.