Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Config::Setting::IniPaUser(Contributed Perl DocumConfig::Setting::IniParser(3)

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

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.

perl v5.32.0			  2020-08-10	 Config::Setting::IniParser(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | AUTHOR | BUGS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Config::Setting::IniParser&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help