Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Bad file descriptor when trying to close file handle

by tybalt89 (Monsignor)
on Mar 03, 2022 at 17:01 UTC ( [id://11141813]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    close $fh or die "$! closing $filename";
    printf "3) fileno = %s\n", $fh->fileno // 'undefined';
    close $fh or die "$! closing $filename";
    
  2. or download this
    1) fileno = 3
    2) fileno = undefined
    Bad file descriptor closing tmp.11141789 at ./pm11141789.pl line 12.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-20 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found