in reply to passing data using MIME::Lite

thanks all folks. As pretty much everybody pointed out, the problem was the brain-dead printing in the sub, instead of returning. Thanks again.