.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "General::Interpolated 3" .TH General::Interpolated 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Config::General::Interpolated \- Parse variables within Config files .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 5 \& use Config::General; \& $conf = Config::General\->new( \& \-ConfigFile => \*(Aqconfigfile\*(Aq, \& \-InterPolateVars => 1 \& ); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This is an internal module which makes it possible to interpolate Perl style variables in your config file (i.e. \f(CW$variable\fR or \f(CW\*(C`${variable}\*(C'\fR). .PP Normally you don't call it directly. .SH VARIABLES .IX Header "VARIABLES" Variables can be defined everywhere in the config and can be used afterwards as the value of an option. Variables cannot be used as keys or as part of keys. .PP If you define a variable inside a block or a named block then it is only visible within this block or within blocks which are defined inside this block. Well \- let's take a look to an example: .PP .Vb 10 \& # sample config which uses variables \& basedir = /opt/ora \& user = t_space \& sys = unix \&