@output = `command`; #### open(PIPE, "command |") or die $!; while () { print; # ..do something else }