in reply to Re: Unexpected output from fork (Win32)
in thread Unexpected output from fork (Win32)
thanks for your informative reply, Jenda
Yes - I see why my $|++ shouldn't work after reading perlvar again (although adding it did get rid of duplicate entries). I couldn't, however, find any mention of the size of the input buffer used by <> or readline() - they both simply promise to return/read up to the next $/ (or EOF) when evaluated in scalar context. Can you point me to the apt document, please? I (wrongly) assumed that, as the seek pointer is shared that I'd get whole records, but you've disproved that :-)
I tried using an array containing all the input already but that has its own problems when you use fork() - perhaps it's time I tried to use threads; :-) Then I can share the array.
- Mark
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Unexpected output from fork (Win32)
by BrowserUk (Patriarch) on Aug 09, 2004 at 17:51 UTC | |
Re^3: Unexpected output from fork (Win32)
by Jenda (Abbot) on Aug 09, 2004 at 16:27 UTC | |
by iburrell (Chaplain) on Aug 09, 2004 at 16:46 UTC | |
by maa (Pilgrim) on Aug 09, 2004 at 17:38 UTC |