Why is that?
Because that is the way it works, you can't call a subroutine until it is defined, the BEGIN block runs before the subroutine is defined. See BeginCheckInitEndUnitcheck.pl
And is that anyway I can make that sub below the BEGIN block ?
Why do you think you need a begin block? Because you don't you know :)
In reply to Re: Can't call sub within same package in BEGIN block
by Anonymous Monk
in thread Can't call sub within same package in BEGIN block
by exilepanda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |