in reply to Re: Filehander Question
in thread Filehander Question
Your code has a side effect.
print $fh ('test');
and
print('test');
both end up in the file, when a filename is specified. I don't think that was your intention.
To set auto-flushing, do
{ my $f = select($fh); $|=1; select($f); }
instead of
select($fh); $|=1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Filehander Question
by Limbic~Region (Chancellor) on Oct 07, 2004 at 15:38 UTC | |
by ikegami (Patriarch) on Oct 07, 2004 at 15:39 UTC | |
by Limbic~Region (Chancellor) on Oct 07, 2004 at 15:46 UTC |