Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the Net-Delicious CPAN distribution.

Report information
The Basics
Id: 30310
Status: new
Priority: 0/
Queue: Net-Delicious

People
Owner: Nobody in particular
Requestors: phil [...] gyford.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.11
Fixed in: (no value)



Subject: Error messages when used with warnings on
Download (untitled) / with headers
text/plain 907b
Hi, If the module is used with the -w flag on then two errors are generated when calling the new() method: "my" variable $root masks earlier declaration in same scope at /path/to/Net/Delicious.pm line 1030. Use of uninitialized value in -f at /path/to/Net/Delicious.pm line 227. I understand that this diff will help: @@ -233,7 +233,7 @@ $cfg = $args->{cfg}; } - elsif (-f $args->{cfg}) { + elsif ($args->{cfg} && -f $args->{cfg}) { eval { require Config::Simple; $cfg = Config::Simple->new($args->{cfg}); @@ -1027,7 +1027,7 @@ } } - my $root = $self->{'__updates'}; + $root = $self->{'__updates'}; return File::Spec->catfile($root, $file); } (Taken from http://www.gyford.com/phil/writing/2007/10/24/netdelicious_err.php ) Thanks, Phil


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.