Leo Charre
and 1 contributors

NAME

LEOCHARRE::Digest - quick md5 sum output

SYNOPSIS

   use LEOCHARRE::Digest ':all';
   my $abs = '/home/myself/data.txt';
   my $sum = md5_cli($abs);

DESCRIPTION

This is a wrapper around gnu coreutils md5sum. Is much quicker than some Digest::MD5::File and such.

SUBS

md5_cli()

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.

CAVEATS

Will only work on posix, with gnu coreutils.

AUTHOR

Leo Charre leocharre at cpan dot org

LICENSE

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".

DISCLAIMER

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.