Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

config::any::ini(3) [osx man page]

Config::Any::INI(3)					User Contributed Perl Documentation				       Config::Any::INI(3)

NAME
Config::Any::INI - Load INI config files DESCRIPTION
Loads INI files. Example: name=TestApp [Controller::Foo] foo=bar [Model::Baz] qux=xyzzy METHODS
extensions( ) return an array of valid extensions ("ini"). load( $file ) Attempts to load $file as an INI file. requires_all_of( ) Specifies that this module requires Config::Tiny in order to work. PACKAGE VARIABLES
$MAP_SECTION_SPACE_TO_NESTED_KEY (boolean) This variable controls whether spaces in INI section headings will be expanded into nested hash keys. e.g. it controls whether [Full Power] maps to $config->{'Full Power'} or $config->{'Full'}->{'Power'} By default it is set to 1 (i.e. true). Set it to 0 to preserve literal spaces in section headings: use Config::Any; use Config::Any::INI; $Config::Any::INI::MAP_SECTION_SPACE_TO_NESTED_KEY = 0; AUTHORS
Brian Cassidy <bricas@cpan.org> Joel Bernstein <rataxis@cpan.org> COPYRIGHT AND LICENSE
Copyright 2006-2011 by Brian Cassidy, portions copyright 2006, 2007 by Joel Bernstein This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o Catalyst o Config::Any o Config::Tiny perl v5.16.2 2011-05-24 Config::Any::INI(3)

Check Out this Related Man Page

Config::Any::XML(3)					User Contributed Perl Documentation				       Config::Any::XML(3)

NAME
Config::Any::XML - Load XML config files DESCRIPTION
Loads XML files. Example: <config> <name>TestApp</name> <component name="Controller::Foo"> <foo>bar</foo> </component> <model name="Baz"> <qux>xyzzy</qux> </model> </config> METHODS
extensions( ) return an array of valid extensions ("xml"). load( $file ) Attempts to load $file as an XML file. requires_all_of( ) Specifies that this module requires XML::Simple and XML::NamespaceSupport in order to work. CAVEATS
Strict Mode If, by some chance, XML::Simple has already been loaded with the strict flag turned on, then you will likely get errors as warnings will become fatal exceptions and certain arguments to XMLin() will no longer be optional. See XML::Simple's strict mode documentation for more information. AUTHORS
Brian Cassidy <bricas@cpan.org> Joel Bernstein <rataxis@cpan.org> COPYRIGHT AND LICENSE
Copyright 2006-2013 by Brian Cassidy This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o Catalyst o Config::Any o XML::Simple perl v5.18.2 2013-09-10 Config::Any::XML(3)
Man Page

12 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem cutting & comparing values

Hi guys I am having some problem cutting and comparing values.I got an INI file which is has some values and ranges mapping to error and warning codes eg criticalerror:69,20,1to9 warningmsg:101,10to19 So taking the scenrio where i have a control script that execute a.ksh, when a.ksh... (6 Replies)
Discussion started by: wilsontan
6 Replies

2. UNIX for Advanced & Expert Users

Bad Number Error

What is wrong with my syntax, I am getting bad number error. The following lines of code get the value from INI file but the variable is a combination of multiple variables. When compiling all together, I get a bad number error or changing the '((' with '{{' gets me bad substitution error. The... (2 Replies)
Discussion started by: moan71
2 Replies

3. Linux

Linux Redhat ES 4.0 - DNS Config Issues

(11 Replies)
Discussion started by: AbhijithS
11 Replies

4. Shell Programming and Scripting

need docs.

Hi , Im not into much of a perl and now I have work on some perl scripts which use commands like Config::Tiny, Use Data:Dumper etc. Can any one provide insight into these commands or any documents are also more than welcomed. Thanks, (2 Replies)
Discussion started by: rimser9
2 Replies

5. Shell Programming and Scripting

Config Generation

I'm looking for good ways to handle config generation. I have been rolling my own for a few years now, but I'm wondering if there is a better way and would like to get some advice from anyone who has any ideas or experience in doing this. Here are some things I want to achieve in generating... (1 Reply)
Discussion started by: humbletech99
1 Replies

6. Shell Programming and Scripting

SED 4.1.4 - INI File Change Problem in Variables= in Specific [Sections] (Guru Help)

GNU sed version 4.1.4 on Windows XP SP3 from GnuWin32 I think that I've come across a seemingly simple text file change problem on a INI formatted file that I can't do with SED without side effects edge cases biting me. I've tried to think of various ways of doing this elegantly and quickly... (5 Replies)
Discussion started by: JakFrost
5 Replies

7. Gentoo

Gentoo on ppc with GXT6500P Gfx?

Hey I have a IntelliStation Power 9114 Model 275 1.45GHz Workstation 1-Way 1.45GHz Power4+ Processor (5223) 2GB Memory (4x 512MB Dimms) (4447) GXT6500P Power Graphics Adapter and was told that there would be trouble installing the powerpc version of Linux on it due to the video card. ... (3 Replies)
Discussion started by: newtoaix
3 Replies

8. Shell Programming and Scripting

rename multiple files with wildcards

Hi All I am having hundred over file in the below pattern. AA050101.INI BB090101.INI . . ZX980101.INI Need to rename these files with an extension .bak AA050101.INI.bak BB090101.INI.bak . . ZX980101.INI.bak (5 Replies)
Discussion started by: karthikn7974
5 Replies

9. Shell Programming and Scripting

Help in locating a word in huge files

hi i receive about 5000 files per day in my system. Each of them are like: cat ABC.april24.dat ABH00001990 01993 409009092 0909 INI iop 9033 AAB0000237893784 8430900 898383 AUS 34349089008 849843 9474822 AAA00003849893498098394 84834 348348439 -438939 IN AAA00004438493893849384... (2 Replies)
Discussion started by: Prateek007
2 Replies

10. UNIX for Dummies Questions & Answers

Trying to show lines in INI files until the comment character (#)

I have a working directory on a server with over 100 INI files. For the most part, they are configured the same way. Each line will contain 1 or none variables listed from the first character in the line such as VariableName=0. Unfortunately there are comments everywhere using the... (4 Replies)
Discussion started by: hindesite
4 Replies

11. Shell Programming and Scripting

PERL : Remove spaces in a variable

I have a variable I want to remove the spaces in between. The output should be How can this be done Any help will be appreciated. Thanks in advance (1 Reply)
Discussion started by: irudayaraj
1 Replies

12. Shell Programming and Scripting

Read Data from Config file using Perl

Hi All, Can anyone please explain me how to read data from config file in Perl. Suppose i have a config file named cfile. The data in config file is name=parth lname=mittal user=2007 hostname=fluoride username=parthmittal password=XXXXXX account=unix url=www.unix.com ... (2 Replies)
Discussion started by: parthmittal2007
2 Replies