Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: A way to report open file handles a Perl script has open?

by kennethk (Abbot)
on Apr 04, 2017 at 18:11 UTC ( #1187029=note: print w/replies, xml ) Need Help??

in reply to A way to report open file handles a Perl script has open?

Anonymous Monk has answered the immediate question (say my $v=()=`lsof -p $$`), but the following grabbed my attention:
leaking file handles like a sieve
What is the mechanism here? Lexical filehandles generally address this problem, but will obviously linger if you are stashing them in a persistent data structure.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-10-19 22:49 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (77 votes). Check out past polls.