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
--- 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
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
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,