Config:: IniFiles

Summary
Args: $thing $thing An input source
Args: $class, %parms $class The class that this is being tied to.
Args: $key $key The name of the key whose value to get
Args: $key, @val $key The key under which to store the value @val The value to store, either an array or a scalar
Args: $key $key The key to remove from the hash
Args: (None)
Args: $key $key The key to look for
Args: (None)
Args: $last $last The last key accessed by the interator
Args: (None)

Functions

new

sub new

val

sub val

setval

sub setval

newval

sub newval

delval

sub delval

ReadConfig

sub ReadConfig

_make_filehandle

Args: $thing $thing An input source

Description: Takes an input source of a filehandle, filehandle glob, reference to a filehandle glob, IO::File object or scalar filename and returns a file handle to read from it with.

Date Modification Author

06Dec2001 Added to support input from any source JW

Config:: IniFiles:: _section:: TIEHASH

Args: $class, %parms $class The class that this is being tied to.  %parms Contains named parameters passed from the constructor plus thes parameters -_current_value holds the values to be inserted in the hash.  -default should be a hash ref.  -parms reference to the $self->{parms}{$sect} of the parent

Description: Builds the object that gets tied to the sections name.  Inserts the existing hash, defined in the named parameter ‘-_current_value’ into the tied hash.

Date Modification Author

Config:: IniFiles:: _section:: FETCH

Args: $key $key The name of the key whose value to get

Description: Returns the value associated with $key.  If the value is a hash, returns a hashref, just like normal Perl hashes.

Date Modification Author

2000Jun15 Fixed bugs in -default handler JW 2000Dec07 Fixed another bug in -deault handler JW 2002Jul04 Returning scalar values (Bug:447532) AS

Config:: IniFiles:: _section:: STORE

Args: $key, @val $key The key under which to store the value @val The value to store, either an array or a scalar

Description: Sets the value for the specified $key

Date Modification Author

2001Apr04 Fixed -nocase bug JW

Config:: IniFiles:: _section:: DELETE

Args: $key $key The key to remove from the hash

Description: Removes the specified key from the hash

Date Modification Author

2001Apr04 Fixed -nocase bug JW

Config:: IniFiles:: _section:: CLEAR

Args: (None)

Description: Empties the entire hash

Date Modification Author

Config:: IniFiles:: _section:: EXISTS

Args: $key $key The key to look for

Description: Returns whether the key exists

Date Modification Author

2001Apr04 Fixed -nocase bug JW

Config:: IniFiles:: _section:: FIRSTKEY

Args: (None)

Description: Returns the first key in the hash

Date Modification Author

Config:: IniFiles:: _section:: NEXTKEY

Args: $last $last The last key accessed by the interator

Description: Returns the next key in line

Date Modification Author

Config:: IniFiles:: _section:: DESTROY

Args: (None)

Description: Called on cleanup

Date Modification Author

sub new
sub val
sub setval
sub newval
sub delval
sub ReadConfig