in reply to passing bits of an array to an executable a piece at a time
Instead of parsing the your data on the argument list, you should consider opening a pipe to the opened program, so that it can just read the data from stdin. See Open2.
T I M T O W T D I
T I M T O W T D I
In Section
Seekers of Perl Wisdom