The package statement doesn't affect execution order: $global = "I'm in the testEnd package global version"; is executed after the testEnd::show_me() call, so $testEnd::global is still undef at that point in time.
Note that you should always Use strict and warnings.
In reply to Re: why package definition order affect the available of package variable
by haukex
in thread why package definition order affect the available of package variable
by fanasy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |