Keep It Simple, Stupid | |
PerlMonks |
Inline::C output with printf problemby Cine (Friar) |
on Jul 04, 2003 at 01:40 UTC ( [id://271354]=perlquestion: print w/replies, xml ) | Need Help?? |
Cine has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to print a few lines from the C-part of my program, but it seems that there is some limit as to how much I can print? Can Anyone tell me why?
Using simple trivial code, called a few hundred times:
If I run this in the shell it works fine (I get a ton of output)... If I pipe it trough wc I get:
I then tried to call the output function twice for every time i would call it othervise and puf:
As in I get the full output (twice) Why the sudden succes?!? Ok so I must hit some magic barrier, but I cant find any other who have the same problem or any kind of documentation that would explain it. If I add an extra printf(" \n")(lots of spaces) it works. As a second choice I then tried to call a perlfunction which print, but that keeps segfaulting?
T I M T O W T D I
Back to
Seekers of Perl Wisdom
|
|