PTools::SDF::INIImplements a Simple Data File in "Windows INI" format | |
Download |
PTools::SDF::INI Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Chris Cobb
- Publisher web site:
- http://search.cpan.org/~ccobb/PTools-0.02/lib/PTools/Date/Format.pm
PTools::SDF::INI Tags
PTools::SDF::INI Description
Implements a Simple Data File in "Windows INI" format PTools::SDF::INI is a Perl module that implements a Simple Data File in "Windows INI" format.SYNOPSIS use PTools::SDF::INI; $iniObj = new PTools::SDF::INI( $fileName ); or $iniObj = new PTools::SDF::INI( $fileName, $iniSection, @fields ); $fieldNames = $iniObj->param($sectName); # "name1:name2:name3" (@fieldNames) = $iniObj->param($sectName); # array of field names $fieldValue = $iniObj->param($sectName, $fieldName); $iniObj->param($sectName, $fieldName, $newValue); $sectionCount = $iniObj->param; # number of "sections" (@sectionNames) = $iniObj->param; # name of each sectionThe following is roughly equivalent to the dump method used to display the contents of objects of this class. foreach my $secName ( $iniObj->param ) { print "$secName "; foreach my $fieldName ( $iniObj->param( $secName ) ) { my($fieldValue) = $iniObj->param($secName, $fieldName); print " $fieldName = $fieldValue "; } } Requirements: · Perl
PTools::SDF::INI Related Software