in reply to Difference between piped-in and invocation arguments to a Perl script?
The first form will read its input from the named files; the second form (with no command line arguments) will read its input from stdin. Both forms write their filtered output to stdout.filter_program FILE1 FILE2 generate_data | filter_program
|
|---|