Ok, what is happening is that the default filehandle seems to be changed inside my module as it should UNTIL I make a call to another subroutine which does an in-place edit of a file.
Does changing $^I(which I do for the in-place edit) screw anything up?