Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Implicit closing of files

by Zen (Deacon)
on Jun 18, 2008 at 14:36 UTC ( [id://692719]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Implicit closing of files
in thread Implicit closing of files

That's fine, but you didn't provide a sample that repros on your coworker's machine, nor say what type of machine it is. Investigation cannot happen if you do not help others help you. Even if perl defined the behavior clearly, a bug may exist (even in your code).

Replies are listed 'Best First'.
Re^4: Implicit closing of files
by rovf (Priest) on Jun 19, 2008 at 07:37 UTC
    The problem is that he used *my* code, and when we tried to reproduce the problem, it worked well all the time. That's why I was wondering whether this is the type of undefined behaviour which "just works well most of the time". The machines are of the same type, but he uses Perl 5.8.8, while I am using 5.8.7 and 5.10 (ActiveState always). For this reason, I was interested whether the Perl programming langauge itself defines the behaviour (i.e. whether Perl is *supposed* to close the file when the local handle goes out of scope), in which case we should persuade the problem further, or whether the behaviour is unspecified/implementation dependent, in which case it makes no sense doing further research.
    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found