Searching text with perl

Ok, I’ve got this much when it comes to search ing for a keyword

open FILE, “< file.txt”; /$word/ and print while <FILE>;

Now can someone explain to me how I can have this search return a whole
listing from a database. So say the DB has a listing of names and
birthdays and I search for a certain birthday, how do I get all the
results for that match to appear?(the whole entry included - assuming the
fields are separated by | or soemthing and the entries by a n) Thanks


Brian Wilmot http://www.jumpnow.net/ http://www.uglybillboards.com/ “You
can die but you’re never dead” - Red Hot Chili Peppers

Ok…once again I must have been doing something wrong because that does
return the whole entry. Wow…I’m on a roll with this perl stuff.


Brian Wilmot http://www.jumpnow.net/ http://www.uglybillboards.com/ “You
can die but you’re never dead” - Red Hot Chili Peppers “Brian Wilmot”
<bwilmot@jumpnow.net> wrote in message
news:9ev2po$ahe$1@constitution.worldwebserver.com
> Ok, I’ve got this much when it comes to search ing for a keyword
>
> open FILE, “< file.txt”; /$word/ and print while <FILE>;
>
> Now can someone explain to me how I can have this search return a whole
> listing from a database. So say the DB has a listing of names and
birthdays
> and I search for a certain birthday, how do I get all the results for
> that match to appear?(the whole entry included - assuming the fields are
> separated by | or soemthing and the entries by a n) Thanks
>
> –
> Brian Wilmot http://www.jumpnow.net/ http://www.uglybillboards.com/ "You
> can die but you’re never dead" - Red Hot Chili Peppers