Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Bad file descriptor when trying to close file handle

by fireblood (Scribe)
on Mar 03, 2022 at 10:56 UTC ( [id://11141789]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    unless (open ($fh_debug, ">>", $self -> {debug_file_name}))
        {
            print STDERR "\nCould not open \$fh_debug: $!\n";
            die;
        }
    
  2. or download this
    line_no
    480    print $fh_debug "jj\n";
    ...
    493            print STDERR "\nCould not close \$fh_debug: $!\n";
    494            die;
    495        }
    
  3. or download this
    jj
    $fh_debug is defined
    
  4. or download this
    Could not close $fh_debug: Bad file descriptor
    Died at /u1/stat/global/bin/perllib/master_log.pm line 494.
    Can't use an undefined value as a symbol reference at /u1/stat/global/
    +bin/perllib/master_log.pm line 480.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found