jweden1 has asked for the wisdom of the Perl Monks concerning the following question:
use threads; # concurrently move all the files to the directory passed in on the co +mmand line my $j = 0; for (1..10) { $j++; threads->create(\&mytest); } #Subroutine that does the file copies. This is called concurrently. sub mytest { my $result = `mv ./a_file$j /home/user/dir 2>&1`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Did I create a concurrent program?
by BrowserUk (Patriarch) on Nov 19, 2008 at 14:29 UTC | |
|
Re: Did I create a concurrent program?
by Corion (Patriarch) on Nov 19, 2008 at 13:56 UTC | |
by JavaFan (Canon) on Nov 19, 2008 at 14:05 UTC | |
by jweden1 (Initiate) on Nov 19, 2008 at 22:30 UTC |