in reply to variable and a non-variable

I'm unsure how to interpret your question. See How do I post a question effectively? or I know what I mean. Why don't you?. Are you saying you want to store a bareword filehandle in a scalar like Indirect Filehandles? If so, see Re Opening Files (dups) in perlopentut.