IO::Digest3pm
Calculate digests while reading or writing
Usage
use IO::Digest;# Get a Digest::MD5 object that takes input while $fh being written or readmy $fh;my $iod = IO::Digest->new ($fh, 'MD5');print $fh "fooo";print $iod->hexdigest
Overview
This module allows you to calculate digests while reading or writing file handles. This avoids the case you need to reread the same content to compute the digests after written a file.
Test coverage
----------------------------------- ------ ------ ------ ------ ------ ------File stmt branch cond sub time total----------------------------------- ------ ------ ------ ------ ------ ------blib/lib/IO/Digest.pm 100.0 n/a n/a 100.0 100.0 100.0Total 100.0 n/a n/a 100.0 100.0 100.0----------------------------------- ------ ------ ------ ------ ------ ------
Releases
12 releases since Debian 3.1 (Sarge); the text changed 6 times.