in reply to Re^2: Auto-evaluating anonymous subroutines
in thread Auto-evaluating anonymous subroutines
There's no need to put your @EXPORT and *import assignment in a BEGIN block.
Oh I realize that. If you read Re: Undefined subroutine errors and Re^3: Undefined subroutine errors, you'll see that not only do I understand execution order quite well, I placed those statements in BEGIN block for a reason: that pattern allows two modules to include each other. Obviously, that's not required here, but I don't see any reason why I shouldn't use the pattern here.
By the way, I also explain execution order in Re: BEGIN and END blocks, use strict and scoping.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Auto-evaluating anonymous subroutines
by diotalevi (Canon) on Feb 21, 2006 at 03:36 UTC |