$ cat ./conf.conf $a = 'a'; $ cat ./test.pl #!/usr/bin/perl use strict; use warnings; my $file = 'conf.conf'; do $file; if ($! || $@) { die("Can't load $file due: '$!' or '$@'"); } exit 0;