/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Conf/blib/lib/Conf/String.pm


Name

Conf::String, a string backend for Conf.


Synopsys

 use Conf;
 use Conf::String;

 open my $in,"<conf.cfg";
 my $string=<$in>;
 close $in;
 my $cfg=new Conf(new Conf::String(\$string))
 print $cfg->get("config item 1");
 $cfg->set("config item 1","Hi There!");
 open my $out,">conf.cfg";
 print $out $string;
 close $out;


Abstract

Conf::String is a backend module for Conf.


Description

new(\$strref) --> Conf::String

If called with a reference to a string, will instantiate a Conf::String object. Otherwise will attempt to die.

set(var,val) --> void

This method will set variable var to value <val>. All set methods will immmidiately reset the value of the string that the object references to. So, all changes through 'set' will be visibile immidiately to the program environment.

get(var) --> string

Returns undef, if var does not exist. Returns the value of var (string), otherwise.

variables() --> list

Will return a list of all variables in Conf::String.


SEE ALSO

Conf::String , Conf::SQL , Conf::File .


AUTHOR

Hans Oesterholt-Dijkema, <oesterhol@cpan.org>


COPYRIGHT AND LICENSE

Copyright 2004 by Hans Oesterholt-Dijkema

This library is free software; you can redistribute it and/or modify it under LGPL.

 /Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Conf/blib/lib/Conf/String.pm