X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fversion.pl;fp=cmd%2Fshow%2Fversion.pl;h=da72e305938cb3b263623be2578791738629ab12;hb=56abde4de8d3ecc67864cdfd34a7c5d184ee8930;hp=c4593b934002e9257cd057d695627d036a40fd4f;hpb=f884903785eaf4ec9bfea168170c1bb127becf5c;p=spider.git diff --git a/cmd/show/version.pl b/cmd/show/version.pl index c4593b93..da72e305 100644 --- a/cmd/show/version.pl +++ b/cmd/show/version.pl @@ -14,7 +14,7 @@ if (opendir(DIR, "$main::root/perl")) { closedir(DIR); foreach my $fn (@d) { if ($fn =~ /^cluster\.pl$/ || $fn =~ /\.pm$/) { - my $f = new IO::File $fn or next; + my $f = new IO::File "$main::root/perl/$fn" or next; while (<$f>) { if (/^#\s+\$Id:\s+[\w\._]+,v\s+(\d+\.\d+)/ ) { $build += $1;