MPMinus::Helper::Util - MPMinus Helper's utility
Version 1.05
use MPMinus::Helper::Util;
MPMinus Helper's utility
print back2slash(" C:\foo\bar "); # C:/foo/bar
Convert backslashes to slashes in strings
my $name = cleanProjectName( "foo" );
Returns clean name of project
my $name = cleanServerName( "localhost" );
Returns clean name of server
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', };
my %meta = load_metadata("meta.yml");
Returns metadata from YAML file
my $v = to_void( $value );
Returns '' (void) if undefined $value else - returns $value
See CHANGES file
CHANGES
CTK
See TODO file
TODO
Coming soon
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
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/
LICENSE
To install MPMinus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MPMinus
CPAN shell
perl -MCPAN -e shell install MPMinus
For more information on module installation, please visit the detailed CPAN module installation guide.