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
In reply to Re: BEGIN block question
by FunkyMonk
in thread BEGIN block question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |