Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: When do filehandles close?

by jZed (Prior)
on Jul 22, 2004 at 23:41 UTC ( [id://376755]=note: print w/replies, xml ) Need Help??


in reply to When do filehandles close?

Try for yourself (with the commented line commented and then uncommented):
#!perl -w use strict; $|=1; writefile(); print FILE "goodbye\n"; print `cat tmptmp`; sub writefile { # local *FILE; open (FILE, ">tmptmp") or die $!; print FILE "hello\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2025-06-20 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.