D>      perl -wle 'require "./$_" for @ARGV' program1 program2 program3
Ah ha. OK. On perlrun, it should mention:
Question: How to do all this with only one invocation of perl?
$ perl program1 inputfile|perl -e command2|perl program3|perl -e command4
Answer: Simple:
$ perl -e 'require "./program1"; command2;
  require "./program3"; command4' inputfile
(Not tested).  Hmmm, perldoc -f says
"Note that the file will not be included twice under the same
specified name.", so maybe -e 'require "./myfilter";command;require
"./myfilter"' won't work.

Reply via email to