#! /usr/bin/perl -w use strict; my @out = readpipe( '/bin/foo', qw/one two three/ );