Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Catching errors in closing lexical filehandles

by gaal (Parson)
on Sep 27, 2004 at 09:19 UTC ( [id://394103]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use closefail qw(:standard);
    use closefail { die "I'm not feeling so well: $!" };
    
  2. or download this
    {
        use closefail;
        open my $thing, $what or die "...";
        # ...
    }   # <- still in effect as this block ends
    
  3. or download this
    {
        use closefail;
        {
    ...
            # ...
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-24 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found