Hi Hauke, what I am trying to build is a preprocessor for a format that has embedded free-form Perl within <% ... %> limiters. This in itself is easy since I can simply open(|perl) and send stuff to it, but the second quirk is that there is also a second level of preprocessor macros following Verilog convention (e.g. `include FILE). The corner case that is hard to handle is `include <%$file%> which implies that I need to first send it through Perl, then include the file, which may internally have more Perl :(
This is why I was trying to set up a bidirectional link to a Perl process.
I'll look at some of the other suggestions in the thread.
Thanks
Pankaj