Exact matching using GREP.

2005-09-08 Thread Sara
my @present = ('perl', 'perl/chat', 'php', 'php/forums', 'php/counters', 'perl/search/scripts', 'php'); # Getting Results for mySQL query in hashref. while (my $row = $sth->fetchrow_hashref) { if (grep /$row->{CAT_TITLE}/, @present) { #matching title with @present elements print "$row->{C

Re: Exact matching using GREP.

2005-09-08 Thread Ovid
--- Sara <[EMAIL PROTECTED]> wrote: > while (my $row = $sth->fetchrow_hashref) > { > if (grep /$row->{CAT_TITLE}/, @present) { > #matching title with @present elements > print "$row->{CAT_TITLE}"; > } > > Question is how to do EXACT matching using GREP? because the above > code print

Re: Exact matching using GREP.

2005-09-08 Thread Sara
No, it's not working, probably you didnt' get my question. Anyways, thanks for a prompt reply. Sara. - Original Message - From: "Ovid" <[EMAIL PROTECTED]> To: Sent: Friday, September 09, 2005 12:01 AM Subject: Re: Exact matching using GREP. --- Sara <[EMAIL PROTECTED]> wrote: wh

Re: Exact matching using GREP.

2005-09-08 Thread Wiggins d'Anconia
Please bottom post Sara wrote: > No, it's not working, probably you didnt' get my question. How is it not working now? What Ovid sent is exactly what I would have answered so you probably need to provide more information. You mention man pages and switches to grep, there are two greps here,