Thread AppConfig: Default-Werte kompakt angeben (2 answers)
Opened by pktm at 2008-03-06 17:03

ptk
 2008-03-06 21:26
#106683 #106683
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Z.B. so (ungetestet)?
Code: (dl )
1
2
3
@datenstruktur = (["key", "=s", "word"], ...);
map { join"",@{$_}[0,1] } @datenstruktur; # für Getopt::Long
$config->define($_->[0], $_->[1]) for @datenstruktur; # für AppConfig

View full thread AppConfig: Default-Werte kompakt angeben