in reply to Subroutine Produces Output but Fails to Return to Parent
Well ... there's really not enough code here to make a guess. I would guess there's code somewhere masking your return so .. Use strict warnings and diagnostics or die.