my @prereq = qw(DBI DBIx::AnyDBD); for my $prereq (@prereq) { eval "use $prereq" ; die "\nPlease install $prereq before installing DBSchema::Sample" +if ($@) ; my $v = "$prereq::VERSION"; # LINE 115 my $v2 = eval $v; print "Found $prereq version $v2\n" ; # LINE 117 } ====== OUTPUT: Use of uninitialized value in string at /home/tbone/perl-modules/lib/s +ite_perl/5.8.0/DBSchema/Sample.pm line 115. Use of uninitialized value in concatenation (.) or string at /home/tbo +ne/perl-modules/lib/site_perl/5.8.0/DBSchema/Sample.pm line 117. Found DBI version Use of uninitialized value in string at /home/tbone/perl-modules/lib/s +ite_perl/5.8.0/DBSchema/Sample.pm line 115. Use of uninitialized value in concatenation (.) or string at /home/tbo +ne/perl-modules/lib/site_perl/5.8.0/DBSchema/Sample.pm line 117. Found DBIx::AnyDBD version Found the following DBD drivers:
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality.
In reply to eliminating warnings with conditional uses by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |