in reply to Re: Boolean array indexingin thread Boolean array indexing
$b[$_] > 1 and push(@c, $a[$_]) for 0 .. $#a;; [download]
Good point. Does away with the need for a temp var. ++