or download this
# I assume you are using 2 different pdls, not rows of the same pdl as
+ you mentioned in your post
# If it's just one pdl, 'dog' it
...
# my $upper_edges = $indices + 1 != $indices->rotate(-1)
# now slice and dice up your piddles knowing the regions you want.