in reply to Re: Boolean array indexingin thread Boolean array indexing
Or even:
my @result = @a[grep {$b[$_] > 1} 0 .. $#b]; [download]