in reply to When do filehandles close?
Just for completeness, one other time when filehandles close is when you call close() on them. Also, please take a look at open() in perlfunc, where it says this:
Using the constructor from the "IO::Handle" package (or one of its subclasses, such as "IO::File" or "IO::Socket"), you can generate anonymous filehandles that have the scope of whatever variables hold references to them, and automatically close whenever and however you leave that scope:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: When do filehandles close?
by gaal (Parson) on Jul 23, 2004 at 06:49 UTC | |
by beable (Friar) on Jul 23, 2004 at 07:19 UTC | |
by gaal (Parson) on Jul 23, 2004 at 08:01 UTC |
In Section
Seekers of Perl Wisdom