My Perl Libs


NAME

     EL::section -  Handle section files


SYNOPSIS

     use EL::section;
     my $sec = EL::section->new;


DESCRIPTION

     Read and write files thta  store data in section or attribute/values
     format.
         [section_x]      
         attribute = value
         attribute = value
                          
         or only          
                          
         attribute = value
         attribute = value
         
     Care when handling  files with distinct formats  (ie., with section,
     attribute and value or only attribute  and value). Do  not  try, for
     for example,  to add sections  into attribute/value format  file and
     vice-versa.

METHODS

     $sec->get($section,\@attr)
     If `$attr' null,  all attributes in section (if  especified) will be
     get,  otherwise  especified, section  file  will  be considered  not
     section. But if both don't especified,  will be get all sections (if
     exist) and all attributes.
     $sec->change($section,\%attr)
     If section  already it will have  some attribute to be  insert, your
     value will be changed. Otherwise,  the attribute will be added. Case
     section in `$section' not exist, it will be added.
     $sec->remove($section,\@attr)
     If all  attributes of section will  be removed, the section  also it
     will be. If none atribute will  be informed, all the section will be
     removed.


EXAMPLE


AUTHORS

     Ednardo Lobo <ednardo@elobo.cjb.net>


SEE AlSO

     EL::lib