Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how to make close() fail

by pvaldes (Chaplain)
on Sep 29, 2012 at 11:25 UTC ( #996363=note: print w/ replies, xml ) Need Help??


in reply to how to make close() fail

I'm wondering if there's an easier way.

You shouldn't ever need to use a close line

open my $fo, '<', "somefile" or die $!; ... blah blah # close($fo) implicit, not necessary

Any suggestions to make close fail?

use warnings; use strict; close (undef) or die;


Comment on Re: how to make close() fail
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-12-21 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls