Which version of perl are you using?
In reply to Re^3: Need Help: Capture Print Outputs from a Function by wfsp in thread Need Help: Capture Print Outputs from a Function by mnj200g