Hello Julian,

On Thu, 1 Dec 2011 12:15:05 -0600
Julian Inesta <[email protected]> wrote:

> Ryan,
> 
> You could do it like this.
> 
> system("perl attachment.pl");
> system("perl attachment2.pl");
> ....
> system("perl attachment7.pl");
> 

1. This will not do what the original poster asked for. It will run the
scripts one after the other instead of in parallel.

2. There's quite a lot of duplicate functionality here - you should use a
foreach loop.

3. You should use the list form of system in this case.

4. You should do error checking.

5. "perl" in the system call should be replaced with $^X.

6. You should avoid top-posting.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

Larry Wall *does* know all of Perl. However, he pretends to be wrong
or misinformed, so people will underestimate him.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to