in reply to pass variable to another process when invoking from command line

bashprompt$ ./program.pl | ./program.pl — nothing could be simpler...

Course, I went and assumed you meant bash. If you meant open, then you want: open my $out, "|", "./program.pl" or die "lol: $!".

-Paul

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.