CC: | i.arbeca [...] gmail.com |
Subject: | Use of uninitialized value in pattern match (m//) at (...)/Gungho/Request.pm |
Hi,
I got this error several times when running Gungho :
Use of uninitialized value in pattern match (m//) at
/usr/local/perl-dists/perls/perl-5.12.2/lib/site_perl/5.12.2/Gungho/Request.pm
line 98.
Here is the code in Gungho/Request.pm :
sub requires_name_lookup
{
my $self = shift;
return ! $self->notes('resolved_ip') &&
($self->uri->can('host') && $self->uri->host() !~
/^$RE{net}{IPv4}$/); ## line 98
}
The error is thrown when $self->uri->host() is undef.
This variable could be checked before, but maybe there is a deeper
problem here ?
Regards,
Isabelle Cabrera