http://www.perlmonks.org?node_id=997465

Not really a poem, it just struck me how nice the second line of this code sounds:

for (@commands) { if (fork==0) { exec $_ } }; wait for @commands;
use strict; use warnings; print "Just Another Perl Hacker\n";

Replies are listed 'Best First'.
Re: wait for @commands
by chacham (Prior) on Oct 07, 2012 at 05:42 UTC

    wait for @commands;

    Hmm....

    • weight for commands (sell it to someone who needs a few pounds)
    • wait 4 @commands (i do batches quickly, like 1, 2, 3)
    • wait for at commands (xt commands are so 80's)
    • wait for @commands (please asks nicely)