in reply to calling a subroutine while Initializing new

If you are passing wanting to pass the subroutine to the module(as you are doing above), then the subrutine should be defined in the file that instantiates the object.

If you are not wanting to pass the subroutine in to the module, then it should be in the package file and called from the new subroutine.

  • Comment on Re: calling a subroutine while Initializing new