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        my $fh;
13        my $iod = IO::Digest->new ($fh, 'MD5');
14
15        print $fh "fooo";
16        print $iod->hexdigest
17

DESCRIPTION

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

TEST COVERAGE

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

AUTHORS

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