Subject: | Spurious warnings in Object::Dependency. |
when I execute a simple test script, which just creates a new graph and
adds a dependency to it, I get a lot of warnings about uninitialized
values in Object::Dependency, see below:
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 74.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 75.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 76.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 76.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 74.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 74.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 74.
Use of uninitialized value $da in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 80.
Use of uninitialized value $da in delete at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 81.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 85.
Use of uninitialized value $da in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 86.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 88.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 85.
Use of uninitialized value $da in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 86.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 88.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 85.
Use of uninitialized value $da in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 86.
Use of uninitialized value $addr in hash element at
/usr/local/share/perl/5.10.1/Object/Dependency.pm line 88.
The test script is attached.
I use Proc::JobQueue 0.3, installed via cpan on Ubuntu Linux (upcoming
10.04) with perl 5.10.1.
Bye...
Dirk
Subject: | deps.pl |
#!/usr/bin/perl
use strict;
use warnings;
use Object::Dependency;
my $graph = Object::Dependency->new();
my $object = "foo.o";
my @deps=("foo.c", "foo.h", "bar.h");
$graph->add($object, @deps);
exit (0);