IO::Digest - Calculate digests while reading or writing


IO-Digest documentation  | view source Contained in the IO-Digest distribution.

Index


NAME

Top

IO::Digest - Calculate digests while reading or writing

SYNOPSIS

Top

 use IO::Digest;

 # Get a Digest::MD5 object that takes input while $fh being written or read
 $iod = IO::Digest->new ($fh, 'MD5');

 print $fh "fooo";
 print $iod->hexdigest

DESCRIPTION

Top

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

Top

 ----------------------------------- ------ ------ ------ ------ ------ ------
 File                                  stmt branch   cond    sub   time  total
 ----------------------------------- ------ ------ ------ ------ ------ ------
 blib/lib/IO/Digest.pm                100.0    n/a    n/a  100.0  100.0  100.0
 Total                                100.0    n/a    n/a  100.0  100.0  100.0
 ----------------------------------- ------ ------ ------ ------ ------ ------

AUTHORS

Top

Chia-liang Kao <clkao@clkao.org>

COPYRIGHT

Top


IO-Digest documentation  | view source Contained in the IO-Digest distribution.