* Robert Moskowitz <r...@htt-consult.com>: > Use of single and double quotes around values: > > Is there some meaning to when single and double quotes are used? Or is it > to avoid possible substitutions to use single instead of double quotes? > > For example: > > $mydomain = 'test.htt-consult.com'; # a convenient default for other > settings
As in many scripting languages a single quote defines a literal string and double quotes contain a string, which may be interpreted i.e. may contain another expression that need to be interpreted. $mydomain = 'htt-consult.com'; $myhostame = "test.$mydomain"; > Why is a single quote used here? I would venture that no special reason > other than 'because', and I can change it to a double quote. > > > Is there a way for @mynetworks to read in an external file that would be > easier to maintain (like I do with acls in dns) rather than needing to work > with this value in amavis.conf. And if so, what would be the structure of > content in that file? I'm not aware of a special subroutine for that. Take a look at read_hash and read_text in RELEASE_NOTES. Since everything in amavis is pure perl you can write some routine yourself. p@rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein