Re: BEGIN {...} and IO

2005-08-13 Thread Ingo Blechschmidt
Hi, Nicholas Clark wrote: > On Tue, Jun 14, 2005 at 07:56:32PM +0200, Ingo Blechschmidt wrote: >> Maybe we should just hardcode the filehandles-leaking-into-runtime >> case in the compiler? And, if the compiler can't detect the problem >> at compile-time, just throw a runtime exception? >> >>

Re: BEGIN {...} and IO

2005-08-13 Thread Nicholas Clark
On Tue, Jun 14, 2005 at 07:56:32PM +0200, Ingo Blechschmidt wrote: > Maybe we should just hardcode the filehandles-leaking-into-runtime case > in the compiler? And, if the compiler can't detect the problem at > compile-time, just throw a runtime exception? > > my $fh = BEGIN { open "some_file"