in reply to perl in ksh

command ... | perl your_perl_script.pl

And in your_perl_script.pl read the data from STDIN.