Turn off potential warning garbage for different versions of perl

This commit is contained in:
Akkadius 2014-11-16 21:22:09 -06:00
parent de16db5a2f
commit 9d6248886c
2 changed files with 3 additions and 1 deletions

View File

@ -2094,6 +2094,7 @@ bool Database::CheckDatabaseConversions() {
#endif #endif
} }
/* Run Automatic Database Upgrade Script */ /* Run Automatic Database Upgrade Script */
system("perl db_update.pl ran_from_world"); system("perl db_update.pl ran_from_world");
return true; return true;

View File

@ -10,6 +10,7 @@ $perl_version = $^V;
$perl_version =~s/v//g; $perl_version =~s/v//g;
print "Perl Version is " . $perl_version . "\n"; print "Perl Version is " . $perl_version . "\n";
if($perl_version > 5.12){ no warnings 'uninitialized'; } if($perl_version > 5.12){ no warnings 'uninitialized'; }
no warnings;
my $confile = "eqemu_config.xml"; #default my $confile = "eqemu_config.xml"; #default
open(F, "<$confile") or die "Unable to open config: $confile\n"; open(F, "<$confile") or die "Unable to open config: $confile\n";
@ -157,7 +158,7 @@ sub ShowMenuPrompt {
} }
sub MenuOptions { sub MenuOptions {
if(defined(@total_updates)){ if(@total_updates){
$option[3] = "Run pending updates... (" . scalar (@total_updates) . ")"; $option[3] = "Run pending updates... (" . scalar (@total_updates) . ")";
} }
else{ else{