table of contents
other versions
- wheezy 5.14.2-21+deb7u3
- jessie 5.20.2-3+deb8u6
- testing 5.24.1-3
- unstable 5.24.1-3
- experimental 5.26.0-1
other sections
Digest::file(3perl) | Perl Programmers Reference Guide | Digest::file(3perl) |
NAME¶
Digest::file - Calculate digests of filesSYNOPSIS¶
# Poor mans "md5sum" command use Digest::file qw(digest_file_hex); for (@ARGV) { print digest_file_hex($_, "MD5"), " $_\n"; }
DESCRIPTION¶
This module provide 3 convenience functions to calculate the digest of files. The following functions are provided:- digest_file( $file, $algorithm, [$arg,...] )
- This function will calculate and return the binary digest
of the bytes of the given file. The function will croak if it fails to
open or read the file.
- digest_file_hex( $file, $algorithm, [$arg,...] )
- Same as digest_file(), but return the digest in hex form.
- digest_file_base64( $file, $algorithm, [$arg,...] )
- Same as digest_file(), but return the digest as a base64 encoded string.
SEE ALSO¶
Digest2010-12-30 | perl v5.14.2 |