in reply to Re^2: Implicit closing of files
in thread Implicit closing of files

I'm still puzzled why you are using local. Is your perl version so old that you do not have 'my' variables? Most would agree that 'local' is only used these days when altering system variables like $/, $|, and so on (OK, there may be other specialised uses, but these are rare).
The replies here indicate that no one has the courage (me included) to say that 'local' has the desired effect, we just don't use it any more.

Replies are listed 'Best First'.
Re^4: Implicit closing of files
by rovf (Priest) on Jun 18, 2008 at 08:15 UTC
    I'm still puzzled why you are using local.
    Actually, I recently switched use a scoped variable of type IO::Handle, but after reading the article I mentioned in my earlier posting, which proposed using a local handle in the way described, I wanted to try it out. Let's simply call it curiosity....
    -- 
    Ronald Fischer <ynnor@mm.st>