The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Manoc::Utils - Miscellaneous support functions

VERSION

version 2.99.2

FUNCTIONS

check_mac_addr($addr)

Return 1 if $addr is a valid MAC address.

clean_string($s)

Return $s trimmed and lowercase.

decode_bitset($bits, \@names)

Given a string representation of a bitlist and a list of names return the names corresponding to 1 bits.

 decode_bitset('0110', ['one', 'two', 'three', 'four' ])

gives ('two', 'three').

tar($filename, $basedir, \@files)

Create a tar file called c<$filename> with files in @files storing their paths relatively to $basedir.

Use the tar command if present, otherwise Archive::Tar.

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gabriele Mambrini.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.