in reply to Re: BEGIN block question
in thread BEGIN block question

you seemed to refer to the code that has use MyApp::Conf qw/APP_NAME/; outside the BEGIN block. in that case, after the BEGIN block run, $ENV{APP_NAME} is set and use MyApp::Conf qw/APP_NAME/; runs fine.

it is only problem whei put use MyApp::Conf qw/APP_NAME/; inside the block as the last line.

Replies are listed 'Best First'.
Re^3: BEGIN block question
by FunkyMonk (Bishop) on Jun 05, 2007 at 22:20 UTC
    While everything I wrote is correct, it just didn't answer your question at all. Sorry.