my $regex = qr/(.)\1+/i; @ret = grep m/$regex/, @values;
But for me your code works as well.
(Update: removed p6ism, tinita++)
In reply to Re: set value of a variable to a regexp
by moritz
in thread set value of a variable to a regexp
by pc2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |