warning / Useless use of /d modifier in transliteration operator

This commit is contained in:
Scott Walters 2010-05-19 12:57:01 -04:00
parent 757eb8d9fa
commit aeb36106e2

View file

@ -94,7 +94,7 @@ sub getValue {
my $self = shift;
my $value = $self->SUPER::getValue(@_);
$value =~ tr/\r\n//d;
$value =~ tr/a-z/A-Z/d;
$value =~ tr/a-z/A-Z/;
if ($value =~ /^[A-Z\d\s\-]+$/) {
return $value;
}