in reply to Re^4: Stuck with manipulating an array
in thread Stuck with manipulating an array

for (sort { $b <=> $a } @array_of_loci)

should be

for (sort { $a <=> $b } @array_of_loci)

Replies are listed 'Best First'.
Re^6: Stuck with manipulating an array
by Anonymous Monk on Aug 28, 2017 at 14:39 UTC
    Yes true, I was about to write it...
    But now it does work, yet it somehow keeps all values inside the @answer and I do not know why!