A Perl script can easily serve as a filter within a pipe as seen in the following:
use strict;
use warnings;
open(IN, 'cat hello.txt |') or die 'unable to open file';
while (<IN>) {
print;
}
close(IN);
Can I do the same within Python? Thanks.
Jim
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
