What if there was a pragma for enabling parallelization? It could be
use parallel, in the spirit of
integer.
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