- Timestamp:
- 11/05/05 17:30:01 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/soft/ObsData/ObsData.pm
- Property cvs2svn:cvs-rev changed from 1.5 to 1.6
r25 r29 29 29 sub new { 30 30 my ($class, $configfile) = @_; 31 my $obsdata = { 32 config => new Config::IniFiles( 31 my $obsdata = {}; 32 33 if ($configfile) { 34 (-f $configfile && -r _) or return undef; 35 $obsdata->{config} = new Config::IniFiles( 33 36 -file => $configfile, 34 37 -default => 'global', 35 38 -allowcontinue => 1 36 ), 37 }; 38 39 (-f $configfile && -r _) && $obsdata->{config} or return undef; 39 ) or return undef; 40 } 41 40 42 bless($obsdata, $class); 41 43 }
Note: See TracChangeset
for help on using the changeset viewer.