GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CONFIG::SETTING::INIPARSER (3)

.ds Aq ’

NAME

Config::Setting::IniParser - parse windows .ini style files.

CONTENTS

SYNOPSIS



 use Config::Setting::IniParser;

 my $ini = Config::Setting::IniParser->new(Filename => $inifile);
 foreach my $s ($ini->sections()) {
     print "[$s]\n";
     foreach my $k ($ini->keylist($s)) {
         print $k, "=", $ini->get($s, $k), "\n";
     }
     print "\n";
 }



DESCRIPTION

This class provides OO access to windows .ini style files. At present, it only provides read access, not writing.

METHODS

new ( ARGS ) Instantiate a new object. ARGS is a set of keyword / value pairs. Recognised options are:
CommentChar Pass in a character that is used as a comment inside the data. This defaults to #, but is also commonly ;.
parse_file ( FILENAME ) Parse FILENAME into the object.
parse_string ( STRING ) Parse STRING into the object.
sections ( ) Return a list of all sections that occurred in the data. They are returned in the order in which they originally occurred.
keylist ( SECTION ) Return a list of all keys in SECTION.
get ( SECTION, KEY ) Return the value of KEY in SECTION.

SEE ALSO

perl(1).

AUTHOR

Dominic Mitchell, <cpan (at) happygiraffe.net>.

BUGS

Does not cater for quoted keys and values.

It is a bit eager about comment stripping.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CONFIG::SETTING::INIPARSER (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.