http://www.perlmonks.org?node_id=770567


in reply to conf file in Perl syntax

see perlintro
you can use .ini files store your configurations like
host1=192.168.1.1
...

and to access those variables and values you can use config::inifiles
you can also check do if you just want that configuration from a .pl file into the main script

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.