in reply to set value of a variable to a regexp
my $regex = qr/(.)\1+/i; @ret = grep m/$regex/, @values; [download]
But for me your code works as well.
(Update: removed p6ism, tinita++)
Perl 6 in German -- Difficult Sudoku