{ local @INC = @INC; unshift @INC, $ENV{MYAPP_HOME} if defined $ENV{MYAPP_HOME}; require 'myapp.conf'; } open my $conf, '<', $INC{'myapp.conf'} or die 'Flaming death'; 1 while <$conf> ne "__END__\n"; enjoy($conf);
In reply to Re: Config files in CPAN modules?
by hobbs
in thread Config files in CPAN modules?
by jimt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |