Re: File content is not written if close not called

2012-07-17 Thread Moritz Lenz
On 07/17/2012 07:07 PM, Tim Bunce wrote: > On Thu, Jul 12, 2012 at 10:38:32AM -0500, Patrick R. Michaud wrote: >> On Thu, Jul 12, 2012 at 05:36:58PM +0300, Gabor Szabo wrote: >> > The following script leaves and epty 'data.txt' behind. >> > Only if I call $fh.close is the file contents saved. >> >

Re: File content is not written if close not called

2012-07-17 Thread Tim Bunce
On Thu, Jul 12, 2012 at 10:38:32AM -0500, Patrick R. Michaud wrote: > On Thu, Jul 12, 2012 at 05:36:58PM +0300, Gabor Szabo wrote: > > The following script leaves and epty 'data.txt' behind. > > Only if I call $fh.close is the file contents saved. > > > > Is this a feature? > > > > use v6; > > >

Re: File content is not written if close not called

2012-07-12 Thread Patrick R. Michaud
On Thu, Jul 12, 2012 at 05:36:58PM +0300, Gabor Szabo wrote: > The following script leaves and epty 'data.txt' behind. > Only if I call $fh.close is the file contents saved. > > Is this a feature? > > use v6; > > my $fh = open 'data.txt', :w; > $fh.print("hello\n"); While Rakudo and Parrot _sho

File content is not written if close not called

2012-07-12 Thread Gabor Szabo
The following script leaves and epty 'data.txt' behind. Only if I call $fh.close is the file contents saved. Is this a feature? use v6; my $fh = open 'data.txt', :w; $fh.print("hello\n"); Gabor