Or do you mean two or more different characters?
use strict; use warnings; my @strings = qw/xxxx xxxyy/; for( @strings ) { print "$_\n" unless /^(.)\1*$/; }
In reply to Re: How to check if a string contains more than 1 character?
by hdb
in thread How to check if a string contains more than 1 character?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |