in reply to Exporting Variables

You do not want to use Exporter for config.
see Re^3: Where to store config info?
+ Old school: AppConfig, User ... new school: YAML/JSONwith File::HomeDir, File::ShareDir => File::UserConfig

Regarding exporting without naming things, see Re^2: Export in perl, Exporter, use regex

use YourModule '/./';
/./ is regex for everything, you can use /Foo/ ...

Replies are listed 'Best First'.
Re^2: Exporting Variables
by ikegami (Patriarch) on Feb 07, 2011 at 22:14 UTC

    Regarding exporting without naming things

    That imports without naming things. The OP was asking about avoiding to have to name all the things to export.

    $ perl -e' BEGIN { package Foo; use Exporter qw( import ); sub f {} $INC{"Foo.pm"} = __FILE__; } use Foo "/./"; f(); ' Undefined subroutine &main::f called at -e line 10.