diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-06-24 16:54:12 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-06-24 16:54:12 -0700 |
commit | b0c007c6048b687f3b4b1bfc9a489192e5e9f40e (patch) | |
tree | 2a7c6c721f1f7ead508a138d458830d0d5ccbc6d /Votify.pm | |
parent | Add voters for the council-201706 election. (diff) | |
download | elections-b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.tar.gz elections-b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.tar.bz2 elections-b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.zip |
Votify: debug spam.
Use of uninitialized value in subroutine entry at /etc/elections/Votify.pm line 135.
Votify::get_single_election_hashref("council-201706") called at /etc/elections/Votify.pm line 148
Votify::get_elections_hash() called at /etc/elections/Votify.pm line 153
Votify::get_open_elections_hash() called at /etc/elections/election-stats-count line 41
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'Votify.pm')
-rw-r--r-- | Votify.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -129,10 +129,10 @@ sub get_single_election_hashref { return undef unless defined $election_dir; my %election; foreach my $fn (@REQUIRED_FILES){ - #print "Scan $fn\n"; + print STDERR "Scan $fn\n"; my @filenames = (sprintf("%s/%s", "$basedir/$election_name", $fn), sprintf("%s/%s-%s", "$basedir/$election_name", $fn, $election_name)); - #print Dumper(@filenames); - my $filename = abs_path(List::Util::first { -f $_ } @filenames); + print STDERR Dumper(@filenames); + my $filename = abs_path(List::Util::first { $_ && -f $_ } @filenames); $election{"${fn}file"} = $filename; }; #print Dumper(%election); |