M
Master Web Surfer
[This followup was posted to comp.lang.perl.misc]
I need help with solving a problem with the tr/// operator
$v1 = "aeiou";
$v2 = "AEIOU";
$string1 = "Hello out there";
$string1 =~ tr/${v1}/${v2}/;
print "$string1\n";
The output I see is
Hello out there
Why weren't *all* the vowels translated?
I am running perl 5.8.0 under Windows XP.
I have even tried using an eval statement, but with no luck.
I need help with solving a problem with the tr/// operator
$v1 = "aeiou";
$v2 = "AEIOU";
$string1 = "Hello out there";
$string1 =~ tr/${v1}/${v2}/;
print "$string1\n";
The output I see is
Hello out there
Why weren't *all* the vowels translated?
I am running perl 5.8.0 under Windows XP.
I have even tried using an eval statement, but with no luck.