{
    "content": [
        {
            "type": "text",
            "text": "# Config::General::Interpolated (perldoc)\n\n## NAME\n\nConfig::General::Interpolated - Parse variables within Config files\n\n## SYNOPSIS\n\nuse Config::General;\n$conf = Config::General->new(\n-ConfigFile      => 'configfile',\n-InterPolateVars => 1\n);\n\n## DESCRIPTION\n\nThis is an internal module which makes it possible to interpolate Perl style variables in your\nconfig file (i.e. $variable or \"${variable}\").\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **VARIABLES**\n- **SEE ALSO**\n- **AUTHORS**\n- **COPYRIGHT**\n- **VERSION**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Config::General::Interpolated",
        "section": "",
        "mode": "perldoc",
        "summary": "Config::General::Interpolated - Parse variables within Config files",
        "synopsis": "use Config::General;\n$conf = Config::General->new(\n-ConfigFile      => 'configfile',\n-InterPolateVars => 1\n);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "VARIABLES",
                "lines": 52,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Config::General::Interpolated - Parse variables within Config files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Config::General;\n$conf = Config::General->new(\n-ConfigFile      => 'configfile',\n-InterPolateVars => 1\n);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This is an internal module which makes it possible to interpolate Perl style variables in your\nconfig file (i.e. $variable or \"${variable}\").\n\nNormally you don't call it directly.\n",
                "subsections": []
            },
            "VARIABLES": {
                "content": "Variables can be defined everywhere in the config and can be used afterwards as the value of an\noption. Variables cannot be used as keys or as part of keys.\n\nIf you define a variable inside a block or a named block then it is only visible within this\nblock or within blocks which are defined inside this block. Well - let's take a look to an\nexample:\n\n# sample config which uses variables\nbasedir   = /opt/ora\nuser      = tspace\nsys       = unix\n<table intern>\ninstance  = INTERN\nowner     = $user                 # \"tspace\"\nlogdir    = $basedir/log          # \"/opt/ora/log\"\nsys       = macos\n<procs>\nmisc1   = ${sys}${instance}  # macosINTERN\nmisc2   = $user               # \"tspace\"\n</procs>\n</table>\n\nThis will result in the following structure:\n\n{\n'basedir' => '/opt/ora',\n'user'    => 'tspace'\n'sys'     => 'unix',\n'table'   => {\n'intern' => {\n'sys'      => 'macos',\n'logdir'   => '/opt/ora/log',\n'instance' => 'INTERN',\n'owner' => 'tspace',\n'procs' => {\n'misc1' => 'macosINTERN',\n'misc2' => 'tspace'\n}\n}\n}\n\nAs you can see, the variable sys has been defined twice. Inside the <procs> block a variable\n${sys} has been used, which then were interpolated into the value of sys defined inside the\n<table> block, not the sys variable one level above. If sys were not defined inside the <table>\nblock then the \"global\" variable sys would have been used instead with the value of \"unix\".\n\nVariables inside double quotes will be interpolated, but variables inside single quotes will not\ninterpolated. This is the same behavior as you know of Perl itself.\n\nIn addition you can surround variable names with curly braces to avoid misinterpretation by the\nparser.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Config::General\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Thomas Linden <tlinden |AT| cpan.org>\nAutrijus Tang <autrijus@autrijus.org>\nWei-Hon Chen <plasmaball@pchome.com.tw>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2001 by Wei-Hon Chen <plasmaball@pchome.com.tw>. Copyright 2002-2014 by Thomas Linden\n<tlinden |AT| cpan.org>.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nSee <http://www.perl.com/perl/misc/Artistic.html>\n",
                "subsections": []
            },
            "VERSION": {
                "content": "2.15\n",
                "subsections": []
            }
        }
    }
}