in reply to File Handle wierdness
open( OUT, ">outfile" );
if you're planning to blow away the contents of the file each time you run your script, or
open( OUT, ">>outfile" );
if you want to update your code.
i'm surprised you're getting a filehandle opened at all . . .
UPDATE: i stand corrected. tye has the right idea - the filehandle is blocking. i had to do similar 'magic' on a project.
close the filehandle, then re-open it. that'll flush the buffer, and you should see ( at least ) the 'hello' string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File Handle wierdness
by snax (Hermit) on Nov 22, 2000 at 14:25 UTC | |
|
Re: Re: File Handle wierdness
by the_slycer (Chaplain) on Nov 22, 2000 at 11:46 UTC |