Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Bad file descriptor when trying to close file handle

by fireblood (Scribe)
on Mar 04, 2022 at 20:13 UTC ( [id://11141831]=note: print w/replies, xml ) Need Help??


in reply to Re: Bad file descriptor when trying to close file handle
in thread Bad file descriptor when trying to close file handle

Hi, I read your post several times, focusing on your comment "Notice that after you die, you try to execute that block of code an additional time.". I could not see what you were referring to -- after I die, there are no more instructions. And "die" terminates the execution of the program anyway, so I'm not clear as to how after dying I could possibly try to execute that block of code an additional time. When the die instruction is in fact executed when the invoker calls this module a second time, the program totally stops running. Where would I notice that after I die I try to execute that block of code an additional time? I'm drawing a blank on it. Thanks much.
  • Comment on Re^2: Bad file descriptor when trying to close file handle

Replies are listed 'Best First'.
Re^3: Bad file descriptor when trying to close file handle
by ikegami (Patriarch) on Mar 05, 2022 at 20:10 UTC

    I could not see what you were referring to -- after I die, there are no more instructions.

    You have Can't use an undefined value as a symbol reference at /u1/stat/global/bin/perllib/master_log.pm line 480. after Died at /u1/stat/global/bin/perllib/master_log.pm line 494.

    I'm not clear as to how after dying I could possibly try to execute that block of code an additional time.

    Neither are we, since you didn't show us. Maybe you catch the exception? Maybe you call it from a destructor or END block?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-25 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found