summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-10-01 08:19:34 +0000
committerDaouda Lo <daouda@mandriva.com>2004-10-01 08:19:34 +0000
commit3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8 (patch)
tree0f00c1f5f3ba115b54f1d38ff119c98a87316b42
parent0254e652da268dcd96a940c804a3f9aec0a65570 (diff)
downloadmgaonline-3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8.tar
mgaonline-3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8.tar.gz
mgaonline-3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8.tar.bz2
mgaonline-3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8.tar.xz
mgaonline-3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8.zip
- don't use perl checker advisory
-rwxr-xr-xmdkapplet9
1 files changed, 4 insertions, 5 deletions
diff --git a/mdkapplet b/mdkapplet
index 5ecc3dee..83660834 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -175,12 +175,11 @@ sub showMainWindow() {
}
sub md5file {
my @md5;
- my $F;
foreach my $file (@_) {
- open($F, $file) or do { print STDERR "Can't open '$file': $!"; push @md5, "" };
- binmode($F);
- push @md5, Digest::MD5->new->addfile(*F)->hexdigest;
- close($F);
+ open(FILE, $file) or do { print STDERR "Can't open '$file': $!"; push @md5, "" };
+ binmode(FILE);
+ push @md5, Digest::MD5->new->addfile(*FILE)->hexdigest;
+ close(FILE);
}
return wantarray() ? @md5 : $md5[0];
}