Tie::Config - class definitions for tied hashes config file reading


  use Tie::Config;
  tie %hash, 'Tie::Config', ".foo_rc", O_RDWR;


Tied config file reader


  use Tie::Config;
  tie %hash, 'Tie::Config', ".foo_rc", O_RDWR;
    print $hash{'key'};
    $hash{'key'} = "newvalue";
  untie %hash;

Comments is handled internal and is wroted at the top of the file. If ommited access mode default is O_RDONLY ( read only access ). Currently supported mode is only O_RDONLY and O_RDWR.

If config file is changed between tie and untie by other proces, any changes will be lost.


Copyright 2000 Jan 'Kozo' Vajda <>. All rights reserved. It may be used and modified freely, but I do request that this copyright notice remain attached to the file. You may modify this module as you wish, but if you redistribute a modified version, please attach a note listing the modifications you have made.

Address bug reports, patches and comments to:


Thanks very much to:

my wife Erika

for neverending patience

koleso ( )

for permanent discontent

Alert Security Group ( )

for some suggestions & solutions

O'Reilly and Associates, Inc

for my perl book :-{))

...and many many more...

for many suggestions and bug fixes.


perl(1), perltie(1), Tie::Hash(3)