in reply to IO::Select woes
I assume this is a continuation of checking for piped input data? I am wondering why you are using IO::Select at all - it seems to me like IPC may be overcomplicating things a lot. Reading the anonymous posts in that and this thread (it would be easier to follow if you were to create an account), I have to say: please take a moment to take a step back and explain the big picture to us - what are you trying to accomplish? Are you:
In addition, you really shouldn't be using ASCII-formatted tables as your data exchange format; use something like JSON to pass data between processes and then only format the table when actually displaying it to the user.$ cat producer.pl #!/usr/bin/env perl use warnings; use strict; print "Pretend this is your table.\n"; $ cat consumer.pl #!/usr/bin/env perl use warnings; use strict; while ( my $line = <> ) { chomp($line); print "I received: <<$line>>\n"; } $ ./producer.pl | ./consumer.pl I received: <<Pretend this is your table.>> $ ./producer.pl >table.txt $ ./consumer.pl table.txt I received: <<Pretend this is your table.>>
|
---|