in reply to Unexpected behavior with open

Just as it is good practice to declare your variables and initiallize them. If is good practice to close your file handles.

This is just my 2 cents.

Good Hunting,
kha0z

Replies are listed 'Best First'.
Re (tilly) 2: Unexpected behavior with open
by tilly (Archbishop) on Apr 16, 2001 at 04:37 UTC
    FWIW I only rarely close my filehandles. Instead I scope them and let Perl take care of the cleanup.

    This does depend on reliable destruction semantics though, and in Perl 6 I may be forced to do that work for Perl. :-(