perldl> $a=sequence(10) perldl> $b=pdl[3,7,2] perldl> p which($a==$b->dummy) [3 17 22]