http://qs1969.pair.com?node_id=11145062


in reply to Debugging a sort in PDL routine

Now (in 2022) this probably works fine. An ndarray in Perl is a blessed scalar ref, so naively using its value risks its memory address and/or the string value being used. In the latter case, that would (if it has "[]" around it) be something Perl thinks is a non-numeric value.