X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fversion.pl;h=da72e305938cb3b263623be2578791738629ab12;hb=0b0810956c3a067e27395105c1581dbe8523a9e1;hp=fb84ab2cbdf50320a3f8ebfa33732648d5cb397d;hpb=c7dcee3eb996f8a0741ce11ca3615af7cca8ca63;p=spider.git diff --git a/cmd/show/version.pl b/cmd/show/version.pl index fb84ab2c..da72e305 100644 --- a/cmd/show/version.pl +++ b/cmd/show/version.pl @@ -9,14 +9,12 @@ my @out; my $build = $main::version; -use IO::File; - if (opendir(DIR, "$main::root/perl")) { my @d = readdir(DIR); 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;