in reply to Re: Passing a Filehandle that Might be a Bareword
in thread Passing a Filehandle that Might be a Bareword

Right off the top of my head, I would say that it is a very bad idea to accept a file handle from an unknown source.

What unknown source? Filehandles are special in-memory data structures. For one to exist, a program has to be running already. If a program is already running on your machine, its already running, the game is over, it doesn't need your module to do anything, its already running.

  • Comment on Re^2: Passing a Filehandle that Might be a Bareword