Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Bad file descriptor when trying to close file handle

by fireblood (Scribe)
on Mar 04, 2022 at 20:06 UTC ( #11141830=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    line_no
    
    ...
    497                print STDERR "\nCould not close \$fh_debug: $!\n";
    498                die;
    499            }
    
  2. or download this
    Arrived in the custom_functions::master_log subroutine.
    The close function call was successful.
    ...
    Could not close $fh_debug: Bad file descriptor
    Died at /u1/stat/global/bin/perllib/master_log.pm line 498.
    Can't use an undefined value as a symbol reference at /u1/stat/global/
    +bin/perllib/master_log.pm line 483.
    
  3. or download this
    480        my $subroutine_name = (caller(0))[3];
    481        my $invoker = (caller(1))[3];
    482        print “Arrived in the $subroutine_name subroutine.\n”;
    483        print “My invoker is $invoker.\n”;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-02-03 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (25 votes). Check out past polls.

    Notices?