Perl help needed

Hi guys,
I have this little script that adds the search term to the page (for search engine index purposes). However, some companies have limits on that and I need to blank out a few of them. I have it done for the title, if the name is on the list, the search term is blanked out via this:

my %forbid = (
"store1" => 1,
"store2" => 1,
"store3" => 1,
);

my $terms = $input{Terms};
if ( $forbid{$terms} ) { $terms = ''; }


I tried adding it to the below plugin (after the sub mysearch { but it didn;t work.
-------------------

package IWEB;

### Plugin: mysearch
### Purpose:

sub mysearch {


my $cname = $language{$hyperseek{'Category'}} || $input{Terms};


return (" Save with $input{Terms} text text text text text....");

}

1;
---------------
what am I missing?

thanks in advance....

 

 

 

 

Top