R
Rudy Gevaert
Hi,
I have written a perl program that reads from stdin:
while(<STDIN>)
{
chomp
do_it($_);
}
Data is fed to it via a pipe:
cat myfile | ./myprogram
When running the program, the program doesn't always read the whole
line. I'm guessing this has something to do with the stdin buffer.
I would like to know how I can make that perl gets the whole line. As
it is clearly failing from time to time.
Thanks in advance,
Rudy
I have written a perl program that reads from stdin:
while(<STDIN>)
{
chomp
do_it($_);
}
Data is fed to it via a pipe:
cat myfile | ./myprogram
When running the program, the program doesn't always read the whole
line. I'm guessing this has something to do with the stdin buffer.
I would like to know how I can make that perl gets the whole line. As
it is clearly failing from time to time.
Thanks in advance,
Rudy