Forked from
713 / Warden / Warden - archive
517 commits behind the upstream repository.
-
Tomáš Plesník authoredTomáš Plesník authored
getConfHash.pl 280 B
my $hash;
our %VALID_STRINGS;
require $ARGV[0];
while (my ($key, $value_ref) = each %VALID_STRINGS) {
$hash .= " \"$key\" => [\"$value_ref->[0]\"";
shift($value_ref);
foreach my $element (@$value_ref) {
$hash .= ", \"$element\"";
}
$hash .= "],\n";
}
print $hash;