Subject: | small patch to handle "Use of uninitialized value in ..." |
Date: | Mon, 22 Jun 2009 15:09:38 +0200 |
To: | bug-Config-JFDI [...] rt.cpan.org |
From: | kmx <kmx [...] volny.cz> |
Hi,
here is a little patch for JFDI.pm that handles some "Use of
uninitialized value in ..." warning that I have come across when
installing MojoMojo (when running mojomojo_spawn_db.pl)
sub _build_path_to {
my $self = shift;
return $self->config->{home} if $self->config->{home};
- return $self->{path} if -d $self->{path};
+ return $self->{path} if (defined($self->{path}) && -d $self->{path});
return '.';
}
It is absolutely not critical, it is not a blocker, it is just cosmetics
but I'd rather report it.
--
kmx