Changeset 745
- Timestamp:
- 01/16/08 01:42:54 (23 months ago)
- Files:
-
- 1 modified
-
trunk/lib/Perlbal.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Perlbal.pm
r742 r745 1160 1160 sub load_config { 1161 1161 my ($file, $writer) = @_; 1162 open ( F, $file) or die "Error opening config file ($file): $!\n";1162 open (my $fh, $file) or die "Error opening config file ($file): $!\n"; 1163 1163 my $ctx = Perlbal::CommandContext->new; 1164 1164 $ctx->verbose(0); 1165 while (my $line = < F>) {1165 while (my $line = <$fh>) { 1166 1166 $line =~ s/\$(\w+)/$ENV{$1}/g; 1167 1167 return 0 unless run_manage_command($line, $writer, $ctx); 1168 1168 } 1169 close( F);1169 close($fh); 1170 1170 return 1; 1171 1171 }
