CC: | dmuey [...] cpan.org |
Subject: | Digest::MD5::File |
Date: | Fri, 30 Mar 2012 15:29:39 -0400 |
To: | bug-Digest-MD5-File [...] rt.cpan.org |
From: | Par Osterberg Medina <par.osterberg [...] gmail.com> |
Daniel,
First off let me start by thanking you for writing this excellent Perl
module. Here is my system information;
Package: libdigest-md5-file-perl
Priority: optional
Section: perl
Installed-Size: 72
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Architecture: all
Version: 0.07-1
Depends: perl (>= 5.6.0-16), libwww-perl
Linux xyz 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
I was messing around with Digest::MD5::File trying to get the module
to accept a filename that ends with a space (0x20). Yes I know, a
valid filename should not end with a space but I do not have any
control over it - file is part of a self executing archive. They
underlying issue is how you open the file in the function 'getfh' and
by changing the 'open' statement on line 53 of 'File.pm' (see below) I
was able to get it running;
#open my ($fh), "$file" or return;
open (my $fh,"<", $file) or return;
Kind regards
Pär Österberg Medina