in reply to Re: hash as subroutine argumentin thread hash as subroutine argument
But the file hadle in the sub function has to be closed i suppose.
The filehandle is a lexical variable. It will be closed automatically as the variable goes out of scope (i.e. as the subroutine is exited).
See the Copyright notice on my home node.
Perl training courses