performs Riemann operations on triads in Perl