in reply to $var$cnt problems
Try using arrays instead. That way you will have an array called @fmail, and $fmail[$cnt] will interpolate exactly how you expect.
C.