open(INFILE,"cat textfile |") while() {...} open(INFILE,"textfile") while() {...} system("cat textfile | filter.pl")