Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Track open file handles

by Discipulus (Canon)
on Apr 06, 2017 at 07:43 UTC ( [id://1187218]=note: print w/replies, xml ) Need Help??


in reply to Track open file handles

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1187218]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found