-ISC License
+#ISC License
Copyright (c) 2023 Will Budić
https://choosealicense.com/licenses/isc/
-[EContactHash: 990MWWLWM8C2MI8K](https://github.com/wbudic/PerlCNF/blob/master/EContactHash.md)
+[EContactHash: 990MWWLWM8C2MI8K](EContactHash.md)
my $config = $app_settings->global();
$test -> isDefined("\$config global",$config);
- my $app_name = $app_settings->{APP_NAME}; # First Priority if exists and not overwriten.
+ my $app_name = $app_settings->{APP_NAME}; # First Priority if exists and not overwritten.
$test -> isDefined("\$app_name",$app_name);
#
$test->nextCase();
#
- $test->case("App settings values as per priorities by apperance in script or set as default.");
+ $test->case("App settings values as per priorities by appearance in script or set as default.");
#
my $gl__name = $app_settings->global()->{APP_NAME}; #A constant. Second Priority if first doesn't exists.
#encode/decode text quotes and codes
-sub encodeQuotes{
- my $ret = shift; $ret =~ s/\s*$//g;
- $ret =~ s/\"/\"\"/g; $ret =~ s/\'/\'\'/g; $ret =~ s/\\n/%/g;
- $ret =~ s/\\n/\\\\n/g;
- return $ret
-}
-sub decodeQuotes{
- my $ret = shift;
- $ret =~ s/\"\"/\"/g; $ret =~ s/\'\'/\'/g; #$ret =~ s/\\\\/\\/g;
- $ret =~ s/\\n/%/g;
- return $ret
-}
die $test->failed() if not $cnf = CNFParser->new(undef,{'%LOG'=>{console=>1}});
$test->case("Passed new instance CNFParser.");