in reply to Re: Determining subroutine return type
in thread Determining subroutine return type
Agreed. It would certainly be much simpler to have your function "return the right thing". But in the case where you are wrapping/extending a legacy code base, that may not be an option.