in reply to Re: hash as subroutine argument
in thread hash as subroutine argument

yeah this is much better option rather than passing hash as the argument. But the file hadle in the sub function has to be closed i suppose.

Replies are listed 'Best First'.
Re^3: hash as subroutine argument
by davorg (Chancellor) on Jul 03, 2009 at 05:48 UTC
    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