Most likely you are running against IPC buffering. The likely case is, that somewhere in between your program and R, all your commands stack in a buffer that waits for more input, and your read call waits for more input as well.
I would look if the R module maybe has some flush command to flush all buffers after your send sequence. If there is no such facility, you will have to either create it yourself, by grabbing into the guts of R::Statistics and changing the file handle used for communication to autoflush, or by tearing down the communication after each batch of commands. Maybe you should simply batch-send all your commands one after another, and only then start reading the results in.
In reply to Re: Peculiar Perl/R Problem - Memory?
by Corion
in thread Peculiar Perl/R Problem - Memory?
by maybeD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |