in reply to BEGIN block question
A BEGIN code block is executed as soon as possible, that is, the moment it is completely defined, even before the rest of the containing file (or string) is parsed.
Your BEGIN block in test.pl is executed before your use MyApp::Conf qw/APP_NAME/; statement
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: BEGIN block question
by Anonymous Monk on Jun 05, 2007 at 21:59 UTC | |
by FunkyMonk (Bishop) on Jun 05, 2007 at 22:20 UTC |