1IO::Digest(3)         User Contributed Perl Documentation        IO::Digest(3)
2
3
4

NAME

6       IO::Digest - Calculate digests while reading or writing
7

SYNOPSIS

9        use IO::Digest;
10
11        # Get a Digest::MD5 object that takes input while $fh being written or read
12        $iod = IO::Digest->new ($fh, 'MD5');
13
14        print $fh "fooo";
15        print $iod->hexdigest
16

DESCRIPTION

18       This module allows you to calculate digests while reading or writing
19       file handles.  This avoids the case you need to reread the same content
20       to compute the digests after written a file.
21

TEST COVERAGE

23        ----------------------------------- ------ ------ ------ ------ ------ ------
24        File                                  stmt branch   cond    sub   time  total
25        ----------------------------------- ------ ------ ------ ------ ------ ------
26        blib/lib/IO/Digest.pm                100.0    n/a    n/a  100.0  100.0  100.0
27        Total                                100.0    n/a    n/a  100.0  100.0  100.0
28        ----------------------------------- ------ ------ ------ ------ ------ ------
29

AUTHORS

31       Chia-liang Kao <clkao@clkao.org>
32
34       Copyright 2004 by Chia-liang Kao <clkao@clkao.org>.
35
36       This program is free software; you can redistribute it and/or modify it
37       under the same terms as Perl itself.
38
39       See <http://www.perl.com/perl/misc/Artistic.html>
40
41
42
43perl v5.12.0                      2004-09-11                     IO::Digest(3)
Impressum