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

FreeBSD Manual Pages

  
 
  

home | help
WWWdb::ConfigFile(3)  User Contributed Perl Documentation WWWdb::ConfigFile(3)

NAME
       WWWdb::ConfigFile - ConfigFiles for WWWdb

SYNOPSIS
	use WWWdb::ConfigFile;

	$oConfigFile = ConfigFile->new($cFileName,
				       [ReadOnly  => $bReadOnly,]
				       [MustExist => $bMustExist]);

	$cValue	     = $oConfigFile->GetValue($cSection,
					      $cEntry);

	@lValue	     = $oConfigFile->GetList($cSection,
					     $cEntry);

	$cValue	     = $oConfigFile->SetValue($cSection,
					      $cEntry,
					      $cValue);

	$oConfigFile->DESTROY>();

DESCRIPTION
The ConfigFile class
       ...

   Note
	   Currently the configfile is supported in the	ini-file style.

	   sections

	   In this style, the entries can be placed in sections	(and
	   subsections). Sections are placed in	[ and ]	parens.	 This looks
	   like	the following:

	    [section]

	   or

	    [Section subsection]

	   entries

	   The single entries are described in the form	entry =	value.
	   Single-lined	entries	as well	as multiple-lined entries are
	   supported. They look	like the following examples:

	    entry = value

	    entry = "value1 value2"

	    entry = <<EOF
	    value1
	    value2
	    value3
	    EOF

	   comments

	   Comments are	always on a separate line. They	start with a # or ;.
	   Some	examples:

	    # This is a	comment
	    ; This is a	comment	too
	    no_comment = # no comment

   Class Methods
       new
	    $oConfigFile     = ConfigFile->new([FillAtInsert =>	$bFill]);

	   ...

   Class Attributes
       ... ...

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 959:
	   You can't have =items (as at	line 963) unless the first thing after
	   the =over is	an =item

perl v5.32.0			  2002-03-14		  WWWdb::ConfigFile(3)

NAME | SYNOPSIS | DESCRIPTION | The ConfigFile class | POD ERRORS

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

home | help