Hmmm... usually folks ask questions about why their program isn't working. You already seem to understand why it isn't working. I have no idea what "complete linkage clustering" is, but you have already provided the errors above... so fix 'em and you will be on your way. In particular,
- 'weight' is pointing to an empty string... change it to an array as required.
- 'transpose' is pointing to an empty string... change it to 0 or 1.
- 'mask' is pointing to an empty string. Correct that.
- 'data' seems to be ok... it _is_ pointing to an arrayref... check @m and see if it is what the program expects.
--
when small people start casting long shadows, it is time to go to bed