Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: A way to report open file handles a Perl script has open? -- using ${^LAST_FH} ?

by Discipulus (Monsignor)
on Apr 05, 2017 at 08:39 UTC ( #1187076=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # TOTALLY UNTESTED!!
    no warning 'redefine';
    ...
    END{
         print "Files already opened:\n", map {"fileno $_ $fhs{$_}\n"} sor
    +t keys %fhs;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1187076]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-07-20 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (422 votes). Check out past polls.

    Notices?