in reply to Re: Track open file handles
in thread Track open file handles

Of course yes! Normally there's no need to keep track on file handles, if you use them properly. This module is meant as a tool to track down bugs, and to find out the bugs aren't where you think they are -because bugs are always elsewhere. So maybe it should live in the Devel namespace, e.g. Devel::FileHandle::Track or so.

...if I saw value in creating the problem it solves.

The only value in creating problems is to learn how not to create them in the first place.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^3: Track open file handles
by stevieb (Canon) on Apr 05, 2017 at 19:38 UTC

    It could theoretically come in handy as part of a test suite for a distribution that must track handles (because it maintains several at any given time), to ensure none accidentally leak during a run.

    My File::Edit::Portable came to mind immediately. Although there's thorough coverage already, it's one place something like this would be quite useful.