|
Db::Mediasurface::ReadConfig - reads, parses, and stores configuration from a Mediasurface ms.properties file. |
Db::Mediasurface::ReadConfig - reads, parses, and stores configuration from a Mediasurface ms.properties file.
This document refers to version 0.01 of DB::Mediasurface::ReadConfig, released August 3, 2001.
use Db::Mediasurface::ReadConfig;
my $path = '/opt/ms/3.0.2/etc/ms.properties';
my $config = Db::Mediasurface::ReadConfig->new( path=>$path );
print('oracle user is '.$config->get_username.``\n'');
When supplied with a path to a Mediasurface configuration file (usually called ms.properties), this module loads the configuration details into an object, which can be interrogated at a later time.
Each key/value pair occurs on a single line, and the key and value are separated by an equals sign (=) and (optionally) white space. Any text on a line is ignored which follows a hash symbol (#).
Nigel Wetters (nwetters@cpan.org)
Copyright (c) 2001, Nigel Wetters. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
|
Db::Mediasurface::ReadConfig - reads, parses, and stores configuration from a Mediasurface ms.properties file. |