> CODE 3: > printit(*Some_Handle); > CODE 4: > printit(\*Some_Handle); If you're choosing between those two - CODE 4 looks better as it passes the reference to typeglob instead of the typeglob itself and passing references is always the better way to do things. CODE 4 is a usual way for passing "filehandles" and I personally use it .. Going further we may discover a proper modules for handling such things - Joseph Hall in his "Effective Perl Programming" offers to use IO::File.
- File Handles as arguments... Mike Breeze
- Re: File Handles as arguments... Evgeny Goldin (aka Genie)
- Re: File Handles as arguments... Mike Breeze