summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ccc8dd)
(like thomas old code did)
-#$Id: snom.pl,v 1.23 2006-05-21 23:08:48 sithglan Exp $
+#$Id: snom.pl,v 1.24 2006-05-21 23:13:01 michael Exp $
# http://developer.gnome.org/doc/API/2.2/gtk/gtk-migrating-GtkComboBox.html
# http://developer.gnome.org/doc/API/2.2/gtk/gtk-migrating-GtkComboBox.html
- for my $var (qw(host login password)) {
- if (m/^\s*${var}\s*=\s*(.*)\s*$/) {
- ${$Config{$sections[$#sections]}}{$var} = $1;
- }
+ if (m/^\s*(.+)\s*=\s*(.*)\s*$/) {
+ ${$Config{$sections[$#sections]}}{$1} = $2;
for my $section (@sections) {
for my $section (@sections) {
- for my $val (keys(%{$Config{$section}})) {
- print "$section: $val: <" . ${$Config{$section}}{$val}.">\n";
- #for my $val (qw(host login password)) {
- # if (defined($cfg->val($section, $val))) {
- # print "$val: <" . $cfg->val($section, $val) . ">\n";
- # }
- #}
+ for my $val (qw(host login password)) {
+ if (defined(${$Config{$section}}{$val})) {
+ print "$section: $val: <" . ${$Config{$section}}{$val}.">\n";
+ }