in reply to Globalize Filehandles and Visibility in Packages?
I guess this node helps you,
"Global" filehandle without using global variables