other_program arg1 arg2 | your_perl_script #### while (<>) { # handle each line of data here }