If you are writing binary data to a file, try to set
binmode (OUTSUMFILE), and also to the file you are reading from. This is necessary under operating systems like Windows that treat binary and ascii-files in a different way. IIRC, under Linux or Unix there won't be any difference.
Md5: is it possible for you to use the hex digests? They are rather easy to deal with, e.g.
use Digest::MD5;
sub GetMD5Digest {
return (&Digest::MD5::md5_hex($_[0]));
} # GetMD5Digest
or, if you want to get it in a more "human" readable form, you could enhance it about like in the following example:
use Digest::MD5;
sub GetMD5Digest { # former known as md5Hash
my $digest = &Digest::MD5::md5_hex($_[0]);
# split up by pairs, eg. aab23f => aa b2 3f
$digest =~ s/([A-Za-z0-f][A-Za-z0-f])/$1 /g;
chop($digest);
return ($digest);
} # GetMD5Digest
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.