Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Catching errors in closing lexical filehandles

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

Help for this page

Select Code to Download


  1. or download this
    Cannot make a non-overridable builtin fatal at /usr/share/perl/5.8/Fat
    +al.pm line 108.
    BEGIN failed--compilation aborted at f.pl line 1.
    
  2. or download this
        use Fatal qw/open close/;
        my $result = do {
            open my $fh, '>', '/dev/full';
            print $fh "Foo\n";
        };
        print $result ? $result : $@, $/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-06-15 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.