Kåre Edvardsen wrote:
> How could I pass whole piddles as arguments to avoid looping like:
>
> for $i (0..10000) {
>
> $result($i) .= average($intensity(which($x == $color($i) & $y > 
> $contrast($i) )))
>
> }
>
>
> here, $result, $color & $contrast hold the same size, and $intensity, 
> $x and $y hold the same size.
>
>
> Cheers,
> Kare 
You probably want to use dummy dimensions (and transpose or other 
dimension rearrangements as necessary) to expand your $intensity, $x and 
$y, and then use which and average to collapse them back down again.  If 
carefully thought out, it should still be a one-liner.

cheers,
Derek


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to