LEOCHARRE::Digest - quick md5 sum output
use LEOCHARRE::Digest ':all'; my $abs = '/home/myself/data.txt'; my $sum = md5_cli($abs);
This is a wrapper around gnu coreutils md5sum. Is much quicker than some Digest::MD5::File and such.
Arg is path to file on disk. Calls md5sum. Returns undef on failure. If not on disk, md5sum warns. Filename can contain funny chars, we use String::ShellQuote to sanitize.
Will only work on posix, with gnu coreutils.
Leo Charre leocharre at cpan dot org
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the "GNU General Public License" for more details.
To install LEOCHARRE::Digest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LEOCHARRE::Digest
CPAN shell
perl -MCPAN -e shell install LEOCHARRE::Digest
For more information on module installation, please visit the detailed CPAN module installation guide.