-for my $section ($cfg->Sections) {
- for my $val (qw(host login password)) {
- if (defined($cfg->val($section, $val))) {
- print "$val: <" . $cfg->val($section, $val) . ">\n";
- }
- }
- push(@sections, $section);
+ if ($#sections) {
+ for my $var (qw(host login password)) {
+ if (m/^\s*${var}\s*=\s*(.*)\s*$/) {
+ push @{$Config{$sections[$#sections]}}, ($var => $1);
+ }
+ }
+ }