GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       IO::Digest - Calculate digests while reading or writing


        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


       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.


        ----------------------------------- ------ ------ ------ ------ ------ ------
        File                                  stmt branch   cond    sub   time  total
        ----------------------------------- ------ ------ ------ ------ ------ ------
        blib/lib/IO/                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
        ----------------------------------- ------ ------ ------ ------ ------ ------


       Chia-liang Kao <>


       Copyright 2004 by Chia-liang Kao <>.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       See <>

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.086 seconds. Last modified: November 04 2018 12:49:43.