Perlfect Solutions
 

[Perlfect-search] joker search problem

Daniel Naber perlfect-search@perlfect.com
Tue, 24 Sep 2002 16:58:27 +0200
On Tuesday 24 September 2002 12:33, Joan Foo wrote:

> cgi_scan_headers reports: the CGI program search.pl did not produce a
> valid header (name without value: got line "^+ matches null string many
> times at search.pl line 251.")

You can add this code above that line and in that line (251) replace $term 
with $tmp_term:

       my $tmp_term;
       if( $term =~ /^\+/ ) {
                 ($tmp_term) = ($term =~ m/^\+?(.*)$/);
       }

That should help. I guess you are using Perl 5.6.1 or 5.8?

Regards
 Daniel

-- 
http://www.danielnaber.de