EPrints Technical Mailing List Archive

Message: #02743


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: error -> Use of uninitialized value $match


Well, after some days, I was able to solve this problem. It was a
compatibility issue between perl 5.10 and 5.14.

/eprints3/perl_lib/IRStats/Update/Filter/SearchParser.pm

sub uncompile_regex
{
    my( $re ) = @_;
    $re =~ /\(\?[-^\w]*:(.*)\)/; # Works with all perl
    # $re =~ /\(\?[-\w]*:(.*)\)/; < perl 5.14
    return $1;
}

Cristian

On Thu, Feb 27, 2014 at 11:17 AM, Centro de Documentación
<cendocu@gmail.com> wrote:
> Hi,
>
> Does someone knows what this error means?
>
> Use of uninitialized value $match in hash element at
> /usr/share/eprints3/perl_lib/IRStats/Update/Filter/SearchParser.pm
> line 73
>
> This message appears when I run update_table.
>
> I'm losing "search engines" stats.
>
> Regards,
>
> Cristian