IO::Digest(3pm)

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 read
 my $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.0
 Total                                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.

  1. 3.1–4.0
  2. 5.0–7
  3. 8–10
  4. 11
  5. 12
  6. 13
  7. Arch

Authors

Chia-liang Kao <[email protected]>

From perl-io-digest 0.11-13 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.