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