in reply to Running a Perl Code within a Perl Code Using "Shell Module"

You don't need any modules.

#! perl -slw use strict; ## Count the lines in all the .pl file in the CWD my $count = 0; for my $file ( glob '*.pl' ) { ## The 1, causes the command to be run in the background system 1, "wc -l $file"; $count++; } print "$count processes started";

Of course, you may want to control the number of concurrent processes, in which case P::FM or one of the others is probably a good idea.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.