http://www.perlmonks.org?node_id=1097437


in reply to Re^2: Can't call sub within same package in BEGIN block
in thread Can't call sub within same package in BEGIN block

What I still don't understand is why use subs lost this race.

It didn't. use subs did its thing before the BEGIN block was executed.

You're trying to execute "Test fine" before it even gets read from the source file by the parser!

Replies are listed 'Best First'.
Re^4: Can't call sub within same package in BEGIN block
by exilepanda (Pilgrim) on Aug 14, 2014 at 23:26 UTC
    yeah.. I got it now.. use subs "_init" only declared the sub name, but _init() would only work when it's defined.