Index: svn-7.2/server/Slim/Buttons/Input/Text.pm =================================================================== --- svn-7.2/server/Slim/Buttons/Input/Text.pm (revision 22892) +++ svn-7.2/server/Slim/Buttons/Input/Text.pm (working copy) @@ -436,10 +436,10 @@ $client->modeParam('charsInd', $charsInd); # create an array of indexes to the charsRef array representing the given string - my $i = 0; my @indexArray; - while (my $char = substr($$valueRef, $i++, 1) ) { + for (my $i = 0; $i < length($$valueRef); ++$i) { + my $char = substr($$valueRef, $i, 1); push @indexArray, $charsInd->{ $char }; }