in reply to Boolean array indexing

Instead of map{ $a[$_] } @ind you can write @a[@ind], an array slice.

Replies are listed 'Best First'.
Re^2: Boolean array indexing
by GrandFather (Saint) on Nov 21, 2013 at 22:42 UTC

    Or even:

    my @result = @a[grep {$b[$_] > 1} 0 .. $#b];
    True laziness is hard work