If the second program is a shell script, while (my $var = <STDIN>) is wrong. (You probably need something like read var.) If it is in Perl, you can't invoke awk just by mentioning it; you need system or something like that.
In reply to Re^3: pass variable to another process when invoking from command line
by gaal
in thread pass variable to another process when invoking from command line
by vineet2004
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |