in reply to Flushing stdout

You might want to try $|=1; to set autoflush or try printing to STDERR just as a test. I have zero experience with OpenPerl (I just now learned it existed), but I have seen many cases where buffered streams don't surface well when running inside other programs.