in reply to Re: Transparent Wrapper
in thread Transparent Wrapper

Urmm i'd rather not use any additional modules, i wanted to try get it working with a unidirectional pipe? Am i way off here?

Neil Archibald

Replies are listed 'Best First'.
Re: Re: Re: Transparent Wrapper
by Happy-the-monk (Canon) on Mar 05, 2004 at 12:45 UTC

    Perl offers you the means to do it:
    chomp ($input = <>); to catch User input.
    print STDOUT $output; to print output. (Leave out the "STDOUT" if you like)
    print STDERR $output; to print errors.

    You may use open() to create filehandles on a pipe to or from your other process and print to it or read from it. You can also use open() to access STDERR or even STDOUT to read from. You might select a filehandle just for lazyness' sake. Perl enables you to it the hard way a little less awkward than I could imagine. You will learn a lot.
    Or you could just save your time with some CPAN module.