NAME

MPMinus::Helper::Util - MPMinus Helper's utility

VERSION

Version 1.05

SYNOPSIS

    use MPMinus::Helper::Util;

DESCRIPTION

MPMinus Helper's utility

FUNCTIONS

back2slash
    print back2slash(" C:\foo\bar "); # C:/foo/bar

Convert backslashes to slashes in strings

cleanProjectName
    my $name = cleanProjectName( "foo" );

Returns clean name of project

cleanServerName
    my $name = cleanServerName( "localhost" );

Returns clean name of server

getApache, getApache2
    my $hash = getApache();
    my $value = getApache("APACHE_VERSION"); # => '2.0418'

Returns HTTPD_ROOT, SERVER_CONFIG_FILE, SERVER_VERSION and etc., as hash structure (reference).

    {
      'SERVER_VERSION' => '2.4.18',
      'HTTPD_ROOT' => '/etc/apache2',
      'SERVER_CONFIG_FILE' => '/etc/apache2/apache2.conf',
      'APACHE_VERSION' => '2.0418',
      'APACHE_SIGN' => 24,
      'APACHE_LOG_DIR' => '/var/log/apache2',
    };
load_metadata
    my %meta = load_metadata("meta.yml");

Returns metadata from YAML file

to_void
    my $v = to_void( $value );

Returns '' (void) if undefined $value else - returns $value

HISTORY

See CHANGES file

DEPENDENCIES

CTK

TO DO

See TODO file

BUGS

Coming soon

SEE ALSO

CTK

AUTHOR

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

COPYRIGHT

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

LICENSE

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

See LICENSE file and https://dev.perl.org/licenses/