- Timestamp:
- 09/28/05 16:54:48 (19 years ago)
- Location:
- trunk/soft/ObsData
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/soft/ObsData/ObsData.pm
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r3 r21 5 5 use strict; 6 6 use warnings; 7 use Config::IniFiles; 7 8 8 9 our $VERSION = 0.01; 9 10 11 sub new { 12 my ($class, $configfile) = @_; 13 my $obsdata = { 14 config => new Config::IniFiles( 15 -file => $configfile, 16 # -default => '', TODO 17 -allowcontinue => 1 18 ), 19 }; 20 21 (-f $configfile && -r _) && $obsdata->{config} or return undef; 22 bless($obsdata, $class); 23 } 24 25 1;
Note: See TracChangeset
for help on using the changeset viewer.