diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-10-01 08:19:34 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-10-01 08:19:34 +0000 |
commit | 3e6b1405d9c446c0aa67fa4bcffc76533c6bb5c8 (patch) | |
tree | 0f00c1f5f3ba115b54f1d38ff119c98a87316b42 | |
parent | 0254e652da268dcd96a940c804a3f9aec0a65570 (diff) | |
download | mgaonline-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-x | mdkapplet | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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]; } |