in reply to Automatically running series of Perl programs

There are several ways including using backticks `` around each command. Most people probably prefer using the system command. You could also open each program on a file handle:
open PROG "perl foo.pl param1 | " or die "...";
Then you can handle the io.

You could also simplify your three steps into one and write a shell script (did I really suggest that?):

perl foo.perl param1 | perl bar.pl | perl tins.pl > result.txt

Phil

Replies are listed 'Best First'.
Re^2: Automatically running series of Perl programs
by apotheon (Deacon) on Mar 09, 2006 at 19:51 UTC

    Yeah, I think you really did suggest that. Furthermore, I'd suggest a shell script, too. I usually use Perl scripts rather than shell scripts even when a shell script would do quite well enough, but this really strikes me as something simple enough that using Perl is complete overkill and a waste of time, unless running the three other scripts in sequence is part of a larger algorithm somehow.

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin