note
moritz
<blockquote>Whats the best way to read in a very large amount of data from an external program</blockquote>
<p>Pipes! See for example [doc://perlopentut] for some piping examples.</p>
<blockquote>I think not and AFAIK the only way to do this would be to modify the nfdump command to pause execution when blocked by my program (or use files but I prefer not to really). I wonder if its possible to block execution of the external program without modifying it. </blockquote>
<p>Writing to a pipe whose buffer size is exceeded does in fact block, so unless the program that writes stuff takes special care to do non-blocking writes, pipes already do what you want.</p>
<p>Isn't that wonderful?</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-616540">
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
</div></div>
1075884
1075884