# example program: #!/usr/bin/perl -w use strict; my $config = require("config.txt"); print "$config->{var1} $config->{var2}\n"; __END__ # and here's config.txt: { var1 => 'Hello', var2 => 'World', }