in reply to Can't call sub within same package in BEGIN block
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 :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't call sub within same package in BEGIN block
by exilepanda (Friar) on Aug 14, 2014 at 07:31 UTC | |
by Anonymous Monk on Aug 14, 2014 at 08:07 UTC | |
by exilepanda (Friar) on Aug 14, 2014 at 08:32 UTC | |
by ikegami (Patriarch) on Aug 14, 2014 at 16:08 UTC | |
by exilepanda (Friar) on Aug 14, 2014 at 23:26 UTC |