I am using perl script to execute one script which should execute 10 different processes at the same time. my requirement is:
1. It will first extract each line from atext file(having 10 lines with one word on each line)
2. using this line to exacute one script app.exe for all those names.
3. execute each thread which should execute at the same time.

In order to achieve this i have written below piece of code. However i could see the in the task manager only one process is running at a time. But i need all the 10 process should run simultaneously. Can anyone please help me on this?

```
use Thread; 
$file='input.txt'; 
open(INFO, $file) or die("Could not open file."); 
$count = 0; 
foreach $line (<INFO>) { $huh = Thread->new(\&thread1); 
print "Waiting for thread now\n"; 
$stuff = $huh->join(); 
sub thread1 { print "$line"; 
'QueryStores.exe "UPDATE OPTIONS_STR SET OPT_VALUE = 0 WHERE OPT_ID = 16005" /S:$line'    
return 1;} } close(INFO);

```