more useful options | |
PerlMonks |
Re^2: confusing fork/readline behaviourby flipper (Beadle) |
on Aug 13, 2015 at 18:52 UTC ( [id://1138481]=note: print w/replies, xml ) | Need Help?? |
Ah that makes sense, thanks.
Presumably my script above is unsafe in the general case - I imagine libc could readahead 4k and not finish on a line boundary, then the second process would call readline and start halfway through a line...
In Section
Seekers of Perl Wisdom
|
|