Have you read the documentation for use and require? That documentation explains the difference you observe in your update.
You may want to read perlmod about BEGIN, UNITCHECK, CHECK, INIT and END to find out what phases run when.
In reply to Re: "require" bug?
by Corion
in thread "require" bug?
by bt1204
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |