in reply to Passing an array into an open command

Here's how I'd do it.
#populate @ABC for pourposes of the test @ABC = qw[ticket1 ticket2 ticket3]; foreach my $ticket (@ABC) { my $line = qx{/usr/local/bin/ticket $ticket}; # print qx{.... would also accomplish this # assuming you want to do more to $line than print print $line; }
nevermind, missed the fact that all args were needed at once. *sigh*