PerlIO-via-MD5

 view release on metacpan or  search on metacpan

lib/PerlIO/via/MD5.pm  view on Meta::CPAN


  # not reading
  return -1 if $_[1] ne 'r';

  return bless [ Digest::MD5->new, $method ], $_[0];
} #PUSHED

#-------------------------------------------------------------------------------
#  IN: 1 instantiated object
#      2 handle to read from
# OUT: 1 empty string (when still busy) or the digest string (when done)

sub FILL {

    # still reading file
    my $line= readline( $_[1] );
    if ( defined($line) ) {
        $_[0]->[0]->add($line);

        # nothing to be returned yet
	return '';



( run in 0.240 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )