Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How do I make the garbage collector throw an exception when it fails to auto-close a filehandle?

by polettix (Vicar)
on Jan 13, 2007 at 20:15 UTC ( #594567=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    PolettiX:~# dd if=/dev/zero of=testfile bs=1024 count=1024
    1024+0 records in
    ...
    PolettiX:~# 
    PolettiX:~# 
    PolettiX:~# mount testfile -o loop /mnt
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    }
    
    print {*STDERR} "should be closed here!\n";
    
  3. or download this
    Can't close(GLOB(0x814cd4c)): No space left on device at (eval 2) line
    + 3
            main::__ANON__('GLOB(0x814cd4c)') called at ./prova.pl line 13
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-07-12 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls