in reply to Re^3: Parrot, threads & fears for the future.
in thread Parrot, threads & fears for the future.
my @list = ('aaaa' .. 'zzzz'); use parallel 'map'; # Just for maps my @ordlist = map ord, @list; # Defaults only # Probably something like any, all, map, grep, and maybe even sort use parallel; # Sort by last letter in parallel @list = sort {($a =~ /\w+(\w)/) <=> ($b =~ /\w+(\w)/)} @list; # This subroutine can operate in parallel use parallel 'foreach'; foo($_) foreach @list; no parallel; # disable everywhere else
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Parrot, threads & fears for the future.
by Jenda (Abbot) on Oct 26, 2006 at 10:34 UTC | |
by AK108 (Friar) on Oct 26, 2006 at 18:08 UTC | |
by Jenda (Abbot) on Oct 26, 2006 at 21:57 UTC | |
by AK108 (Friar) on Oct 27, 2006 at 16:34 UTC |