NAME

MToken::Util - Exported utility functions

VERSION

Version 1.00

SYNOPSIS

use MToken::Util;

DESCRIPTION

Exported utility functions

cleanServerName
my $servername = cleanServerName( "my.server.com" );

Clening the specified ServerName value

cleanFileName
my $filename = cleanServerName( "mtoken.12345678" );

Clening the specified FileName value

which
my $ls = which( "ls" );

Get full path to specified command. Based on File::Which

where
my @ls = which( "ls" );

Get all full paths to specified command. Based on File::Which

md5sum
my $md5 = md5sum( $file );

See Digest::MD5

sha1sum
my $sha1 = sha1sum( $file );

See Digest::SHA1

filesize
my $fsize = filesize( $file );

Returns file size

HISTORY

See CHANGES file

DEPENDENCIES

CTK, openssl, gnupg

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

perl, CTK, File::Which

AUTHOR

Sergey Lepenkov (Serz Minus) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2017 D&D Corporation. All Rights Reserved

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program 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.

See LICENSE file