I don't know why your bindings have messed up, but maybe you can manually fix them. Add corrections yourself. I'm hazarding a guess that you have your indices all messed up, and don't realize it. Here is a clue as to how to do it.
#!/usr/bin/perl
use warnings;
use strict;
use Tk;
my $mw = tkinit;
my $hl = $mw->HList(-itemtype=>'text')->pack;
for my $n (0..5){
$hl->add($n ,
-text=>"Item $n",
);
}
$mw->bind('<Key-F1>',sub{$hl->selectionClear;
$hl->anchorClear;
$hl->selectionSet(0);
$hl->anchorSet(0);
}
);
MainLoop;
# by Christoph