in reply to Re^3: data leak using package
in thread data leak using package

That's great, thanks to all - using indirect File Handles would have presumably saved me from that so help from all three contributors. I'm very grateful...

Replies are listed 'Best First'.
Re^5: data leak using package
by davorg (Chancellor) on Feb 07, 2007 at 11:39 UTC
    using indirect File Handles would have presumably saved me from that

    Indirect filehandles get automatically closed (and therefore flushed) when the variable holding them goes out of scope. So it may have solved your problem, but only if the filehandle variable went out of scope before you renamed the file. This technique doesn't automatically solve your problems.