I have a shell script consisting of so many perl scripts, one of the perl script have to be run with differnt input each time and the value has to be stored in a single file
In bash, line by line:
while read fruit do perl test.perl "$fruit" done < names.txt