Think about Loose Coupling | |
PerlMonks |
Re: Track open file handlesby Discipulus (Canon) |
on Apr 06, 2017 at 07:43 UTC ( [id://1187218]=note: print w/replies, xml ) | Need Help?? |
It is cool and it well answer to nysus's original question. thanks to have mentioned me even if i've done nearly nothing; I was playng with the, never seen before, ${^LAST_FH} variable. with no success. The resulting module can be helpful in some situation: developping a many files to read application or injecting it into existing codebase to spot fh leaks. To be complete it can be worth to add some optional overrides: sysopen , opendir closedir for example.
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Cool Uses for Perl
|
|