NAME

INI::Reader::Regexp - INI Parser

SYNOPSIS

If file.ini contains:


[Settings]
#======================================================================
# Set detailed log for additional debugging info
DetailedLog=1
RunStatus=1
StatusPort=6090
StatusRefresh=10
Archive=1
# Sets the location of the MV_FTP log file
LogFile=/opt/ecs/mvuser/MV_IPTel/log/MV_IPTel.log
#======================================================================
Version=0.9 Build 4 Created July 11 2004 14:00
ServerName=Unknown


[FTP]
#======================================================================
# set the FTP server active
RunFTP=1
# defines the FTP control port
FTPPort=21
# defines the FTP data port
FTPDataPort=20
# Sets the location of the FTP data directory to catch terminal backups
FTPDir=/opt/ecs/mvuser/MV_IPTel/data/FTPdata
# FTP Timeout (secs)
FTP_TimeOut=5
# Enable SuperUser
EnableSU=1
# set the SuperUser Name
SUUserName=mvuser
# set the SuperUser Password
SUPassword=Avaya
#
#======================================================================


Then when your program contains:
my $hash = $obj->INI_parse($ini_file);


$hash will contain
{
  'Settings' => {
				  'Archive' => '1',
				  'RunStatus' => '1',
				  'ServerName' => 'Unknown',
				  'LogFile' => '/opt/ecs/mvuser/MV_IPTel/log/MV_IPTel.log',
				  'Version' => '0.9 Build 4 Created July 11 2004 14:00',
				  'StatusPort' => '6090',
				  'DetailedLog' => '1',
				  'StatusRefresh' => '10'
				},
  'FTP' => {
			 'SUPassword' => 'Avaya',
			 'FTPDir' => '/opt/ecs/mvuser/MV_IPTel/data/FTPdata',
			 'FTPPort' => '21',
			 'FTP_TimeOut' => '5',
			 'EnableSU' => '1',
			 'RunFTP' => '1',
			 'SUUserName' => 'mvuser'
		   }
		   'FTPDataPort' => '20',
};

DESCRIPTION

Stub documentation for INI::Reader::Regexp, created by h2xs. It looks like the author of the extension was negligent enough to leave the stub unedited.

Blah blah blah.

EXPORT

None by default.

SEE ALSO

Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards.

If you have a mailing list set up for your module, mention it here.

If you have a web site set up for your module, mention it here.

AUTHOR

pc, <pc@>

COPYRIGHT AND LICENSE

Copyright (C) 2021 by pc

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.30.0 or, at your option, any later version of Perl 5 you may have available.