ConfigReader-Simple
view release on metacpan or search on metacpan
eg/config_creator.pl view on Meta::CPAN
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
my $config = '';
while( <> ) {
next if m/\s*#/;
chomp;
my( $directive, $description ) = split m/\s+/, $_, 2;
my $answer = prompt( $description );
$config .= "$directive $answer\n";
}
print $config;
sub prompt maps {
my $message = shift;
( run in 1.016 second using v1.01-cache-2.11-cpan-71847e10f99 )